fix(watchlist-sync): handle empty watchlists on PostgreSQL (#2718)
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user