Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

fixed redis.del()

Blue Mouse6d6111117ff9
diff --git a/src/project/project.controller.ts b/src/project/project.controller.ts
index ff790e408..416634a2a 100644
--- a/src/project/project.controller.ts
+++ b/src/project/project.controller.ts
@@ -127,11 +127,12 @@ export class ProjectController {
await this.projectService.update(id, project)
project = await this.projectService.findOne(id)
+ const key = getRedisProjectKey(id)
try {
- await redis.set(getRedisProjectKey(id), JSON.stringify(project), 'EX', redisProjectCacheTimeout)
+ await redis.set(key, JSON.stringify(project), 'EX', redisProjectCacheTimeout)
} catch {
- await redis.del()
+ await redis.del(key)
}
return project