mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-03 22:26:07 +00:00
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:
@@ -42,7 +42,7 @@ export const reminderServiceFactory = ({
|
|||||||
const $manageReminderRecipients = async (reminderId: string, newRecipients?: string[] | null): Promise<void> => {
|
const $manageReminderRecipients = async (reminderId: string, newRecipients?: string[] | null): Promise<void> => {
|
||||||
if (!newRecipients || newRecipients.length === 0) {
|
if (!newRecipients || newRecipients.length === 0) {
|
||||||
// If no recipients provided, remove all existing recipients
|
// If no recipients provided, remove all existing recipients
|
||||||
await reminderRecipientDAL.deleteById(reminderId);
|
await reminderRecipientDAL.delete({ reminderId });
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user