From 0af6b0e5f5b673e33c1ff465773dab85925e8ac0 Mon Sep 17 00:00:00 2001 From: yugomania Date: Sun, 30 Aug 2026 04:30:00 +0000 Subject: [PATCH] fix: resolve CI build errors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove duplicate STELLAR_AUTH_SECRET from config schema, add the missing UNPROCESSABLE_ENTITY error code, and normalize the creator route keyId param so Prisma receives a string. 🤖 Generated with Codebuff Co-Authored-By: Codebuff --- src/config.schema.ts | 3 --- src/constants/error.constants.ts | 1 + src/modules/creator/creator.routes.ts | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/config.schema.ts b/src/config.schema.ts index d474eb3..38db8d0 100644 --- a/src/config.schema.ts +++ b/src/config.schema.ts @@ -268,9 +268,6 @@ export const envSchema = z .int() .positive() .default(1000), - - // Stellar auth challenge signing secret - STELLAR_AUTH_SECRET: optionalNonEmptyString, }) .superRefine((data, ctx) => { if (data.MODE === 'production' && data.STELLAR_NETWORK === 'testnet') { diff --git a/src/constants/error.constants.ts b/src/constants/error.constants.ts index c207198..bfee94f 100644 --- a/src/constants/error.constants.ts +++ b/src/constants/error.constants.ts @@ -4,6 +4,7 @@ */ export const ErrorCode = { VALIDATION_ERROR: 'VALIDATION_ERROR', + UNPROCESSABLE_ENTITY: 'UNPROCESSABLE_ENTITY', NOT_FOUND: 'NOT_FOUND', UNAUTHORIZED: 'UNAUTHORIZED', FORBIDDEN: 'FORBIDDEN', diff --git a/src/modules/creator/creator.routes.ts b/src/modules/creator/creator.routes.ts index dc290fa..6946e69 100644 --- a/src/modules/creator/creator.routes.ts +++ b/src/modules/creator/creator.routes.ts @@ -76,7 +76,7 @@ creatorsRouter.post( return; } - const keyId = req.params.keyId; + const keyId = String(req.params.keyId); try { const creatorProfile = await prisma.creatorProfile.findFirst({ where: { OR: [{ id: keyId }, { handle: keyId }] },