Skip to content

Commit

Permalink
#30: adds fragement for cleared reminders to support proper retention
Browse files Browse the repository at this point in the history
  • Loading branch information
Dirk Peter committed Jul 12, 2024
1 parent 70922aa commit e308657
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/app/reminder-plugin/reminder.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export interface Reminder extends IEvent {
status: ReminderStatus;
isGroup?: object;
diff?: number;
isCleared?: object;
}

export interface ReminderGroup {
Expand Down
3 changes: 3 additions & 0 deletions src/app/reminder-plugin/services/reminder.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@ export class ReminderService {
status: reminder.status,
};

if (reminder.status === ReminderStatus.cleared) event.isCleared = {};
else event.isCleared = null;

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

Expand Down

0 comments on commit e308657

Please sign in to comment.