Refactor redis calls.

This commit is contained in:
Mike Cao committed 2022-10-25 20:17:13 -07:00
1 parent 7f3db334f5
commit d05fd2bd3d
7 files changed
+15 -15

No files matched your search

+1 -1
View File
@@ -39,7 +39,7 @@ export async function deleteAccount(userId) {
}),
])
.then(async res => {
if (redis.client) {
if (redis.enabled) {
for (let i = 0; i < websiteUuids.length; i++) {
await redis.set(`website:${websiteUuids[i]}`, DELETED);
}