fix(plex): Check Plex server access on user import (#955)

This commit is contained in:
TheCatLady
2021-02-18 10:14:37 -05:00
committed by GitHub
parent bddea7ab24
commit bdb3cb2025
3 changed files with 9 additions and 5 deletions

View File

@@ -87,7 +87,7 @@ authRoutes.post('/login', async (req, res, next) => {
});
const mainPlexTv = new PlexTvAPI(mainUser.plexToken ?? '');
if (await mainPlexTv.checkUserAccess(account)) {
if (await mainPlexTv.checkUserAccess(account.id)) {
user = new User({
email: account.email,
plexUsername: account.username,