replaced some console.errors with logger
This commit is contained in:
@@ -269,7 +269,7 @@ router.put('/profile', authenticateToken, async (req, res, next) => {
|
||||
|
||||
res.json(updatedUser);
|
||||
} catch (error) {
|
||||
console.error('Profile update error:', error);
|
||||
logger.error('Profile update error', { error });
|
||||
next(error);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user