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!

Clear project from redis cache on transfer

Blue Moused0801ea24d16
diff --git a/backend/apps/production/src/project/project.service.ts b/backend/apps/production/src/project/project.service.ts
index 514d08a06..9f703a4ac 100644
--- a/backend/apps/production/src/project/project.service.ts
+++ b/backend/apps/production/src/project/project.service.ts
@@ -119,8 +119,8 @@ export const deleteProjectRedis = async (id: string) => {
try {
await redis.del(key)
- } catch (e) {
- console.error(`Error deleting project ${id} from redis: ${e}`)
+ } catch (reason) {
+ console.error(`Error deleting project ${id} from redis: ${reason}`)
}
}
@@ -1235,6 +1235,8 @@ export class ProjectService {
role: Role.admin,
})
await this.actionTokens.deleteActionToken(token)
+
+ await deleteProjectRedis(projectId)
}
async cancelTransferProject(token: string, projectId: string) {