Excessive logging deprecated
This commit is contained in:
@@ -64,7 +64,7 @@ router.post('/login', async (req, res) => {
|
||||
|
||||
// Change Password
|
||||
router.post('/change-password', async (req, res) => {
|
||||
console.log('DEBUG: change-password route hit');
|
||||
|
||||
try {
|
||||
const token = req.headers.authorization?.split(' ')[1];
|
||||
if (!token) return res.status(401).json({ error: 'Unauthorized' });
|
||||
@@ -105,7 +105,7 @@ router.patch('/profile', async (req, res) => {
|
||||
if (!token) return res.status(401).json({ error: 'Unauthorized' });
|
||||
|
||||
const { userId, profile } = req.body;
|
||||
console.log('DEBUG: Updating profile for', userId, profile);
|
||||
|
||||
|
||||
// Convert birthDate from timestamp to Date object if needed
|
||||
if (profile.birthDate) {
|
||||
|
||||
Reference in New Issue
Block a user