mirror of
https://github.com/kremalicious/umami.git
synced 2024-12-24 18:26:20 +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;
|
global[REDIS] = redis;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
log('Redis initialized');
|
||||||
|
|
||||||
return redis;
|
return redis;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -37,8 +37,8 @@ export async function getSession(req) {
|
|||||||
|
|
||||||
// Check database if redis does not have
|
// Check database if redis does not have
|
||||||
if (!websiteId) {
|
if (!websiteId) {
|
||||||
const { website_id } = await getWebsiteByUuid(website_uuid);
|
const website = await getWebsiteByUuid(website_uuid);
|
||||||
websiteId = website_id;
|
websiteId = website ? website.website_id : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!websiteId || websiteId === DELETED) {
|
if (!websiteId || websiteId === DELETED) {
|
||||||
|
Loading…
Reference in New Issue
Block a user