fix(api): fix scheduling for plex full sync (maybe)

pull/42/head
sct 4 years ago
parent 978f92a1c5
commit 7287a6a957

@ -23,7 +23,7 @@ export const startJobs = (): void => {
// Run full plex sync every 6 hours // Run full plex sync every 6 hours
scheduledJobs.push({ scheduledJobs.push({
name: 'Plex Full Library Sync', name: 'Plex Full Library Sync',
job: schedule.scheduleJob('* * */6 * * *', () => { job: schedule.scheduleJob('0 0 */6 * * *', () => {
logger.info('Starting scheduled job: Plex Full Sync', { label: 'Jobs' }); logger.info('Starting scheduled job: Plex Full Sync', { label: 'Jobs' });
jobPlexFullSync.run(); jobPlexFullSync.run();
}), }),

Loading…
Cancel
Save