Skip to content

Commit

Permalink
[O2B-1394] Handle DB crash (#1789)
Browse files Browse the repository at this point in the history
  • Loading branch information
martinboulais authored Nov 3, 2024
1 parent 94f5ca0 commit 256b612
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lib/server/WebUiServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,14 @@ class WebUiServer {
return;
}

const user = await createOrUpdateUser(request.session);
let user;
try {
user = await createOrUpdateUser(request.session);
} catch (e) {
next(e);
return;
}

if (request.session.access) {
user.access = request.session.access;
}
Expand Down

0 comments on commit 256b612

Please sign in to comment.