mirror of
https://github.com/umami-software/umami.git
synced 2026-02-08 22:57:12 +01:00
Added rev_id column. Updated redis calls.
This commit is contained in:
parent
a9112f39ec
commit
3485b6268b
18 changed files with 133 additions and 79 deletions
|
|
@ -15,7 +15,7 @@ export async function createWebsite(userId, data) {
|
|||
})
|
||||
.then(async res => {
|
||||
if (redis.enabled && res) {
|
||||
await redis.set(`website:${res.id}`, 1);
|
||||
await redis.set(`website:${res.id}`, res);
|
||||
}
|
||||
|
||||
return res;
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ export async function getWebsite(where) {
|
|||
})
|
||||
.then(async data => {
|
||||
if (redis.enabled && data) {
|
||||
await redis.set(`website:${data.id}`, 1);
|
||||
await redis.set(`website:${data.id}`, data);
|
||||
}
|
||||
|
||||
return data;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue