From 5923cbf0512d34f857dd9d92195ba5ce8f0f148a Mon Sep 17 00:00:00 2001 From: KevinMidboe Date: Sun, 22 Dec 2019 13:49:16 +0100 Subject: [PATCH] Incorrect query parameter. Changed from (the not defined) plex_userid to username. --- seasoned_api/src/user/userRepository.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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