Skip to content

Commit

Permalink
fix POST/ application
Browse files Browse the repository at this point in the history
  • Loading branch information
thelostone-mc committed Jan 16, 2025
1 parent cbaf2ba commit e4a99d6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/controllers/applicationController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
Expand Down
4 changes: 2 additions & 2 deletions src/routes/applicationRoutes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ 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
* example: 11155111 # Example of chainId (Sepolia)
* 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
Expand Down

0 comments on commit e4a99d6

Please sign in to comment.