Update getWebsiteByUuid.js

if redis website set from getWebsiteByUuid,the value is 1 forever
This commit is contained in:
刘岗
2022-10-08 13:46:50 +08:00
committed by GitHub
parent aa64b76518
commit 6f6cbaa098

View File

@@ -10,7 +10,7 @@ export async function getWebsiteByUuid(website_uuid) {
})
.then(async res => {
if (redis.client && res) {
await redis.client.set(`website:${res.website_uuid}`, 1);
await redis.client.set(`website:${res.website_uuid}`, res.website_id);
}
return res;