mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
fix redis set for resetWebsite cloudMode
This commit is contained in:
parent
aa376d25df
commit
e64a01d8f1
2 changed files with 6 additions and 3 deletions
|
|
@ -156,7 +156,10 @@ export async function resetWebsite(websiteId: string) {
|
|||
}),
|
||||
]).then(async data => {
|
||||
if (cloudMode) {
|
||||
await redis.client.set(`website:${websiteId}`, data[3]);
|
||||
await redis.client.set(
|
||||
`website:${websiteId}`,
|
||||
data.find(website => website.id),
|
||||
);
|
||||
}
|
||||
|
||||
return data;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue