mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
Check for no session. Closes #1075
This commit is contained in:
parent
29178b18b8
commit
3fab09d626
1 changed files with 4 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue