Skip to content

Commit

Permalink
fix(backend): fix log
Browse files Browse the repository at this point in the history
  • Loading branch information
pYassine committed Jun 24, 2024
1 parent c6cf521 commit 21cb136
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/backend/src/auth/structures-auth.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,7 @@ export class StructuresAuthController {

return res.status(HttpStatus.OK).json(accessToken);
} catch (err) {
return res
.status(HttpStatus.UNAUTHORIZED)
.json({ err });
return res.status(HttpStatus.UNAUTHORIZED).json({ err });
}
}

Expand Down Expand Up @@ -80,7 +78,7 @@ export class StructuresAuthController {
if (!user) {
return res
.status(HttpStatus.UNAUTHORIZED)
.json({ err });
.json({ message: "USER_NOT_FOUND" });
}

return res.status(HttpStatus.OK).json({
Expand Down

0 comments on commit 21cb136

Please sign in to comment.