Skip to content

Commit

Permalink
Code rabbit changes 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
samar12-rad committed Oct 9, 2024
1 parent a12f1b3 commit dc7071c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion backend/controller/admin.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ async function loginAdmin(req, res) {
} catch (error) {
logger.error("Error logging in admin:", {
message: error.message,
stack: error.stack,
});
res.status(500).json({ error: "Internal server error" });
}
Expand Down
2 changes: 1 addition & 1 deletion backend/middlewares/authAdmin.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const authenticateAdmin = (req, res, next) => {
}

req.user = decoded;
logger.info(`Admin authenticated: ${JSON.stringify(decoded.email)}`);
logger.info(`Admin authenticated: ${JSON.stringify(decoded.id)}`);
next();
});
} else {
Expand Down

0 comments on commit dc7071c

Please sign in to comment.