requested changes

This commit is contained in:
Daniel Hougaard
2025-04-23 21:40:01 +04:00
parent 6e65656360
commit 9ea6eca560
2 changed files with 1 additions and 5 deletions
+1 -1
View File
@@ -259,7 +259,7 @@ export const secretQueueFactory = ({
});
}
if (recipients) {
if (recipients?.length) {
await secretReminderRecipientsDAL.transaction(async (tx) => {
await secretReminderRecipientsDAL.delete({ secretId: newSecret.id }, tx);
await secretReminderRecipientsDAL.insertMany(