You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-07-16 00:14:34 +02:00
This commit is contained in:
@ -45,7 +45,7 @@ export default class AlarmService {
|
||||
this.logger().info(`Clearing notification for non-existing note. Alarm ${alarmIds[i]}`);
|
||||
await this.driver().clearNotification(alarmIds[i]);
|
||||
}
|
||||
await Alarm.batchDelete(alarmIds);
|
||||
await Alarm.batchDelete(alarmIds, { sourceDescription: 'AlarmService/garbageCollect' });
|
||||
}
|
||||
|
||||
// When passing a note, make sure it has all the required properties
|
||||
@ -93,7 +93,7 @@ export default class AlarmService {
|
||||
if (clearAlarm) {
|
||||
this.logger().info(`Clearing notification for note ${noteId}`);
|
||||
await driver.clearNotification(alarm.id);
|
||||
await Alarm.delete(alarm.id);
|
||||
await Alarm.delete(alarm.id, { sourceDescription: 'AlarmService/clearAlarm' });
|
||||
}
|
||||
|
||||
if (isDeleted || !Note.needAlarm(note)) return;
|
||||
|
Reference in New Issue
Block a user