mirror of
https://github.com/kremalicious/umami.git
synced 2025-02-03 15:47:30 +01:00
Update getWebsiteByUuid.js
if redis website set from getWebsiteByUuid,the value is 1 forever
This commit is contained in:
parent
aa64b76518
commit
6f6cbaa098
@ -10,7 +10,7 @@ export async function getWebsiteByUuid(website_uuid) {
|
|||||||
})
|
})
|
||||||
.then(async res => {
|
.then(async res => {
|
||||||
if (redis.client && res) {
|
if (redis.client && res) {
|
||||||
await redis.client.set(`website:${res.website_uuid}`, 1);
|
await redis.client.set(`website:${res.website_uuid}`, res.website_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
|
Loading…
Reference in New Issue
Block a user