We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f4473b commit 740fb08Copy full SHA for 740fb08
src/db/tables/email_notifications.ts
@@ -50,6 +50,8 @@ async function addEmailNotification(newNotification: NewNotification) {
50
return trx("email_notifications")
51
.forUpdate()
52
.insert(emailNotificationDb)
53
+ .onConflict(["subscriber_id", "breach_id", "email"])
54
+ .ignore()
55
.returning("*");
56
});
57
return res[0];
0 commit comments