diff --git a/server/lib/availabilitySync.ts b/server/lib/availabilitySync.ts index 0a16302cc..38f3fa384 100644 --- a/server/lib/availabilitySync.ts +++ b/server/lib/availabilitySync.ts @@ -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.');