fix: check for plex token being set in availability sync

pull/3015/head
sct 1 year ago
parent cf26b01f79
commit fa0b855259

@ -42,7 +42,7 @@ class AvailabilitySync {
where: { id: 1 },
});
if (admin) {
if (admin?.plexToken) {
this.plexClient = new PlexAPI({ plexToken: admin.plexToken });
} else {
logger.error('An admin is not configured.');

Loading…
Cancel
Save