feat: user profile and layout modifications

This commit is contained in:
vanne committed 2026-07-02 11:02:33 +07:00
1 parent 6501bb4275
commit f94cefb349
37 files changed
+483 -89795

No files matched your search

+2 -1
View File
@@ -260,7 +260,8 @@ router.post('/upload-profile-picture', upload.single('profile_picture'), (req, r
res.json({ ok: true, message: 'Foto profil berhasil diperbarui', profile_picture: req.file.filename });
} catch (err) {
res.status(401).json({ error: 'Invalid token' });
console.error('[Upload Error]', err);
res.status(401).json({ error: 'Invalid token', details: err.message });
}
});