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.
2 parents 94a8d02 + 3ba3545 commit 1672abaCopy full SHA for 1672aba
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