diff --git a/seasoned_api/src/user/userRepository.js b/seasoned_api/src/user/userRepository.js index 216387d..8c0221c 100644 --- a/seasoned_api/src/user/userRepository.js +++ b/seasoned_api/src/user/userRepository.js @@ -88,7 +88,7 @@ class UserRepository { */ unlinkPlexUserId(username) { return new Promise((resolve, reject) => { - this.database.run(this.queries.unlink, plexUserID) + this.database.run(this.queries.unlink, username) .then(row => resolve(row)) .catch(error => { // TODO log this unknown db error