fix: handle Plex library settings migration failure gracefully (#2254)

* fix: handle Plex library settings migration failure gracefully

* fix: handle failure in syncLibraries() instead
This commit is contained in:
TheCatLady
2021-12-04 12:42:15 -05:00
committed by GitHub
parent c9ffac33f7
commit ed53810fb3
2 changed files with 35 additions and 21 deletions

View File

@@ -63,11 +63,12 @@ app
});
if (admin) {
const plexapi = new PlexAPI({ plexToken: admin.plexToken });
await plexapi.syncLibraries();
logger.info('Migrating libraries to include media type', {
logger.info('Migrating Plex libraries to include media type', {
label: 'Settings',
});
const plexapi = new PlexAPI({ plexToken: admin.plexToken });
await plexapi.syncLibraries();
}
}