mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
fix redis.client call
This commit is contained in:
parent
f18b5a20e3
commit
f3312732dc
1 changed files with 1 additions and 1 deletions
|
|
@ -15,7 +15,7 @@ export async function createWebsite(user_id, data) {
|
||||||
})
|
})
|
||||||
.then(async res => {
|
.then(async res => {
|
||||||
if (redis.client && res) {
|
if (redis.client && res) {
|
||||||
await redis.set(`website:${res.website_uuid}`, Number(res.website_id));
|
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