mirror of
https://github.com/umami-software/umami.git
synced 2026-02-14 09:35:36 +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,
|
country,
|
||||||
device,
|
device,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (!session) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
if (!e.message.includes('Unique constraint')) {
|
if (!e.message.includes('Unique constraint')) {
|
||||||
throw e;
|
throw e;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue