File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 11import Browser , { Alarms } from 'webextension-polyfill' ;
22import { log } from '../compositions/logger' ;
33import { StorageParams } from '../storage/storage-params' ;
4- import { DAY_MINUTES , getNextTimeOfDay } from '../utils/time' ;
4+ import { DAY_MINUTES , SECOND , getNextTimeOfDay } from '../utils/time' ;
55import { Settings } from '../compositions/settings' ;
66import { dailySummaryNotification } from './daily-summary-notification' ;
77
@@ -31,7 +31,7 @@ export async function rescheduleJobs(): Promise<void> {
3131 ) ) as number ;
3232 await Browser . alarms . clear ( JobId . DailySummaryNotification ) ;
3333 Browser . alarms . create ( JobId . DailySummaryNotification , {
34- when : getNextTimeOfDay ( dailySummaryNotificationTime ) ,
34+ when : getNextTimeOfDay ( dailySummaryNotificationTime * SECOND ) ,
3535 periodInMinutes : DAY_MINUTES ,
3636 } ) ;
3737}
You can’t perform that action at this time.
0 commit comments