Check for no session. Closes #1075
parent
29178b18b8
commit
3fab09d626
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue