Skip to content

Commit

Permalink
#30 adjust code and add info for retention
Browse files Browse the repository at this point in the history
  • Loading branch information
Dirk Peter committed Jul 12, 2024
1 parent e308657 commit e96fe65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/reminder-plugin/services/reminder.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ export class ReminderService {
status: reminder.status,
};

if (reminder.status === ReminderStatus.cleared) event.isCleared = {};
else event.isCleared = null;
// (un)set `isCleared` fragment to supoprt using retention rules for cleared reminders
event.isCleared = (reminder.status === ReminderStatus.cleared) ? {} : null;

return (await this.eventService.update(event)) as IResult<Reminder>;
}
Expand Down

0 comments on commit e96fe65

Please sign in to comment.