Skip to content

Commit bf19073

Browse files
committed
fix auth
1 parent 852392e commit bf19073

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/common/middleware/apiKey.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ export const apiKeyAuth: Handler = (
2525
{ ip: req.ip },
2626
)
2727
handleServiceResponse(serviceResponse, req, res)
28+
return
2829
}
2930
next()
3031
}

src/common/utils/httpHandlers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,6 @@ export const validateRequest =
3737
const errorMessage = `Invalid input: ${(err as ZodError).errors.map((e) => e.message).join(", ")}`
3838
const statusCode = StatusCodes.BAD_REQUEST
3939
const serviceResponse = ServiceResponse.failure(errorMessage, statusCode)
40-
return handleServiceResponse(serviceResponse, req, res)
40+
handleServiceResponse(serviceResponse, req, res)
4141
}
4242
}

0 commit comments

Comments
 (0)