From b33476e01b5c48a655eb00b594c8c61ee3368ab1 Mon Sep 17 00:00:00 2001 From: Aditya Anand M C Date: Thu, 16 Jan 2025 10:58:50 +0530 Subject: [PATCH] fix POST/ application --- src/controllers/applicationController.ts | 2 +- src/routes/applicationRoutes.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/controllers/applicationController.ts b/src/controllers/applicationController.ts index da214ad..6c45470 100644 --- a/src/controllers/applicationController.ts +++ b/src/controllers/applicationController.ts @@ -53,7 +53,7 @@ export const createApplication = async ( }) ); - if (errorFetching !== null || applicationData === null) { + if (errorFetching !== undefined || applicationData === undefined) { res.status(404).json({ message: 'Application not found on indexer' }); throw new NotFoundError('Application not found on indexer'); } diff --git a/src/routes/applicationRoutes.ts b/src/routes/applicationRoutes.ts index cf8184c..ea146b8 100644 --- a/src/routes/applicationRoutes.ts +++ b/src/routes/applicationRoutes.ts @@ -19,7 +19,7 @@ const router = Router(); * alloPoolId: * type: string * description: The ID of the pool to link the application to - * example: "11155111" # Example of poolId + * example: "615" # Example of poolId * chainId: * type: number * description: The chain ID associated with the pool @@ -27,7 +27,7 @@ const router = Router(); * alloApplicationId: * type: string * description: The ID of the application to create - * example: "app-123" # Example of application ID + * example: "0" # Example of application ID * required: * - alloPoolId * - chainId