Merge pull request #4315 from Infisical/fix/reminderEmptyRecipients

Fix an issue on reminder recipients when all recipients are deleted on an update
This commit is contained in:
carlosmonastyrski
2025-08-05 15:32:52 -03:00
committed by GitHub

View File

@@ -42,7 +42,7 @@ export const reminderServiceFactory = ({
const $manageReminderRecipients = async (reminderId: string, newRecipients?: string[] | null): Promise<void> => {
if (!newRecipients || newRecipients.length === 0) {
// If no recipients provided, remove all existing recipients
await reminderRecipientDAL.deleteById(reminderId);
await reminderRecipientDAL.delete({ reminderId });
return;
}