fix(watchlist-sync): handle empty watchlists on PostgreSQL (#2718)

This commit is contained in:
Angelo Olivera
2026-03-23 07:55:40 -06:00
committed by GitHub
parent dbe1fca6a9
commit 865396fd28
2 changed files with 18 additions and 8 deletions

View File

@@ -97,7 +97,12 @@ export const startJobs = (): void => {
logger.info('Starting scheduled job: Plex Watchlist Sync', {
label: 'Jobs',
});
watchlistSync.syncWatchlist();
watchlistSync.syncWatchlist().catch((e) => {
logger.error('Failed to sync watchlists', {
label: 'Plex Watchlist Sync',
errorMessage: e.message,
});
});
}),
});
} else if (