Check for no session. Closes #1075

This commit is contained in:
Mike Cao committed 2022-04-08 17:17:07 -07:00
1 parent 29178b18b8
commit 3fab09d626
1 file changed
+4
+4
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;