fix(backend): do not log error when user has no server access (#1419)

pull/1422/head
TheCatLady 3 years ago committed by GitHub
parent 9233fc0785
commit fc14037ec1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -91,7 +91,7 @@ interface FriendResponse {
email: string; email: string;
thumb: string; thumb: string;
}; };
Server: ServerResponse[]; Server?: ServerResponse[];
}[]; }[];
}; };
} }
@ -232,7 +232,7 @@ class PlexTvAPI {
); );
} }
return !!user.Server.find( return !!user.Server?.find(
(server) => server.$.machineIdentifier === settings.plex.machineId (server) => server.$.machineIdentifier === settings.plex.machineId
); );
} catch (e) { } catch (e) {

Loading…
Cancel
Save