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

This commit is contained in:
TheCatLady
2021-04-13 19:29:21 -04:00
committed by GitHub
parent 9233fc0785
commit fc14037ec1

View File

@@ -91,7 +91,7 @@ interface FriendResponse {
email: 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
);
} catch (e) {