fix(user edit): fix user edit not being able to be saved (#651)

Co-authored-by: sct <sctsnipe@gmail.com>
This commit is contained in:
Jakob Ankarhem
2021-01-15 04:05:58 +01:00
committed by GitHub
parent 23624bd144
commit b04d00ef50
7 changed files with 15 additions and 13 deletions

View File

@@ -68,6 +68,7 @@ authRoutes.post('/login', async (req, res, next) => {
plexToken: account.authToken,
permissions: Permission.ADMIN,
avatar: account.thumb,
userType: UserType.PLEX,
});
await userRepository.save(user);
}
@@ -90,6 +91,7 @@ authRoutes.post('/login', async (req, res, next) => {
plexToken: account.authToken,
permissions: settings.main.defaultPermissions,
avatar: account.thumb,
userType: UserType.PLEX,
});
await userRepository.save(user);
} else {