mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue