mirror of
https://github.com/SrIzan10/analytics.srizan.ml.git
synced 2026-05-01 10:35:15 +00:00
fix redis.client call
This commit is contained in:
@@ -15,7 +15,7 @@ export async function createWebsite(user_id, data) {
|
||||
})
|
||||
.then(async 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;
|
||||
|
||||
Reference in New Issue
Block a user