Added rev_id column. Updated redis calls.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user