Преглед изворни кода

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");