Skip to content

Commit

Permalink
Fix: clear Redis key on event deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
driaug committed Sep 13, 2024
1 parent 7202606 commit 0ef39ce
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/api/src/controllers/v1/Events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export class Events {
await prisma.event.delete({ where: { id } });

await redis.del(Keys.Event.id(id));
await redis.del(Keys.Event.event(project.id, event.name));

return res.status(200).json(event);
}
Expand Down

0 comments on commit 0ef39ce

Please sign in to comment.