Skip to content

Commit

Permalink
fix: status code of responses
Browse files Browse the repository at this point in the history
  • Loading branch information
tejaskh3 committed Apr 8, 2024
1 parent ed1a35f commit b2f082b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controllers/taskUpdatesHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const sendTaskUpdatesHandler = async (request: any, env: env) => {
const authHeader = request.headers.get("Authorization");
console.log(authHeader);
if (!authHeader) {
return new JSONResponse(response.BAD_SIGNATURE, { status: 401 });
return new JSONResponse(response.UNAUTHORIZED, { status: 401 });
}
await verifyNodejsBackendAuthToken(authHeader, env);
const updates: {
Expand Down

0 comments on commit b2f082b

Please sign in to comment.