Skip to content

Commit

Permalink
Merge pull request #88 from useplunk/87-foreign-key-constraint-error-…
Browse files Browse the repository at this point in the history
…when-creating-a-trigger-via-the-api

Fix: clear Redis key on event deletion
  • Loading branch information
driaug authored Sep 13, 2024
2 parents 7202606 + 0ef39ce commit 2130811
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 2130811

Please sign in to comment.