Browse Source

fix: clear cache when updating domain

Fixes #224
upstream-develop
poeti8 1 year ago
parent
commit
d64922eb4f
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      server/db/domain.ts

+ 4
- 4
server/db/domain.ts View File

@ -58,8 +58,8 @@ export const setDomain = async (
domain = response;
}
redis.del(user.email);
redis.del(user.email);
redis.del(getRedisKey.user(user.email));
redis.del(getRedisKey.user(user.apikey));
redis.del(getRedisKey.domain(updateDate.address));
return domain;
@ -75,8 +75,8 @@ export const deleteDomain = async (user: UserJoined) => {
redis.del(getRedisKey.domain(domain.address));
}
redis.del(user.email);
redis.del(user.apikey);
redis.del(getRedisKey.user(user.email));
redis.del(getRedisKey.user(user.apikey));
return domain;
};


Loading…
Cancel
Save