瀏覽代碼

add back the removal of domain from the redis cache

Pouria Ezzati 1 年之前
父節點
當前提交
59c2467d98
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      server/handlers/domains.handler.js

+ 2 - 0
server/handlers/domains.handler.js

@@ -38,6 +38,8 @@ async function remove(req, res) {
     throw new CustomError("Could not delete the domain.", 500);
   }
 
+  redis.remove.domain(domain);
+
   if (req.isHTML) {
     const domains = (await query.domain.get({ user_id: req.user.id })).map(sanitize.domain);
     res.setHeader("HX-Reswap", "outerHTML");