fix: improve user deletion process and session handling
Build Images and Deploy / Update-PROD-Stack (push) Successful in 29s

This commit is contained in:
2026-03-20 13:53:07 -04:00
parent ea537ff293
commit b7f3394448
3 changed files with 9 additions and 5 deletions
+3 -2
View File
@@ -167,8 +167,9 @@ router.post('/player/:username/delete', requireAuth, (req, res) => {
}
Users.deleteUser(user.id);
req.session.destroy();
res.redirect('/');
req.session.destroy(() => {
res.redirect('/');
});
});
// ─── Browse all hunts ─────────────────────────────────────