diff options
Diffstat (limited to 'server/models/oauth-client.js')
-rw-r--r-- | server/models/oauth-client.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/models/oauth-client.js b/server/models/oauth-client.js index 830f68857..45834c5a5 100644 --- a/server/models/oauth-client.js +++ b/server/models/oauth-client.js | |||
@@ -29,5 +29,5 @@ function loadFirstClient (callback) { | |||
29 | } | 29 | } |
30 | 30 | ||
31 | function getByIdAndSecret (id, clientSecret) { | 31 | function getByIdAndSecret (id, clientSecret) { |
32 | return this.findOne({ _id: id, clientSecret: clientSecret }) | 32 | return this.findOne({ _id: id, clientSecret: clientSecret }).exec() |
33 | } | 33 | } |