Excessive logging deprecated

This commit is contained in:
AG
2025-11-28 17:57:01 +02:00
parent b4cc722a79
commit b635af69a7
3 changed files with 9 additions and 9 deletions

View File

@@ -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) {