mirror of
https://github.com/umami-software/umami.git
synced 2026-02-10 15:47:13 +01:00
add db call as fallback
This commit is contained in:
parent
9ddbd12060
commit
b6cd9f305b
10 changed files with 71 additions and 40 deletions
|
|
@ -9,7 +9,7 @@ export async function getWebsiteByUuid(website_uuid) {
|
|||
},
|
||||
})
|
||||
.then(async res => {
|
||||
if (process.env.REDIS_URL && res) {
|
||||
if (redis.client && res) {
|
||||
await redis.client.set(`website:${res.website_uuid}`, 1);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue