mirror of
https://github.com/umami-software/umami.git
synced 2026-02-09 07:07:17 +01:00
Refactor redis calls.
This commit is contained in:
parent
7f3db334f5
commit
d05fd2bd3d
7 changed files with 15 additions and 15 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue