Skip to content

Commit 8655246

Browse files
feedback
1 parent 3212849 commit 8655246

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

packages/web/src/lib/errorCodes.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,4 @@ export enum ErrorCode {
3030
API_KEY_ALREADY_EXISTS = 'API_KEY_ALREADY_EXISTS',
3131
API_KEY_NOT_FOUND = 'API_KEY_NOT_FOUND',
3232
INVALID_API_KEY = 'INVALID_API_KEY',
33-
MISSING_QUERY_PARAM = 'MISSING_QUERY_PARAM',
3433
}

packages/web/src/lib/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ export const requiredQueryParamGuard = (request: NextRequest, param: string): Se
300300
if (!value) {
301301
return {
302302
statusCode: StatusCodes.BAD_REQUEST,
303-
errorCode: ErrorCode.MISSING_QUERY_PARAM,
303+
errorCode: ErrorCode.MISSING_REQUIRED_QUERY_PARAMETER,
304304
message: `Missing required query param: ${param}`,
305305
};
306306
}

0 commit comments

Comments
 (0)