Skip to content

Commit f0133b9

Browse files
committed
fixes
1 parent af2b1d5 commit f0133b9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

server/controllers/session.controller.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ export function destroySession(req, res, next) {
3636
next(err);
3737
return;
3838
}
39-
req.session.destroy((err) => {
40-
if (err) {
41-
next(err);
39+
req.session.destroy((error) => {
40+
if (error) {
41+
next(error);
4242
return;
4343
}
4444
res.json({ success: true });

0 commit comments

Comments
 (0)