mirror of
https://github.com/kremalicious/umami.git
synced 2024-12-24 02:06:19 +01:00
Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
b829d84fc1
@ -19,6 +19,8 @@ function getClient() {
|
||||
global[REDIS] = redis;
|
||||
}
|
||||
|
||||
log('Redis initialized');
|
||||
|
||||
return redis;
|
||||
}
|
||||
|
||||
|
@ -37,8 +37,8 @@ export async function getSession(req) {
|
||||
|
||||
// Check database if redis does not have
|
||||
if (!websiteId) {
|
||||
const { website_id } = await getWebsiteByUuid(website_uuid);
|
||||
websiteId = website_id;
|
||||
const website = await getWebsiteByUuid(website_uuid);
|
||||
websiteId = website ? website.website_id : null;
|
||||
}
|
||||
|
||||
if (!websiteId || websiteId === DELETED) {
|
||||
|
Loading…
Reference in New Issue
Block a user