Check for no session. Closes #1075

pull/1091/head
Mike Cao 2022-04-08 17:17:07 -07:00
parent 29178b18b8
commit 3fab09d626
1 changed files with 4 additions and 0 deletions

View File

@ -49,6 +49,10 @@ export async function getSession(req) {
country,
device,
});
if (!session) {
return null;
}
} catch (e) {
if (!e.message.includes('Unique constraint')) {
throw e;