aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/oauth-client.js
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-07-27 21:15:07 +0200
committerChocobozzz <florian.bigard@gmail.com>2016-07-27 21:16:19 +0200
commit32bb41560279dd0c75d0461f081873483e3aaed9 (patch)
treeef4d621d7f9f5ffcadf437da0e872042312305bc /server/models/oauth-client.js
parentf24c4e44624058e16d4a09856fac8c409203c59f (diff)
downloadPeerTube-32bb41560279dd0c75d0461f081873483e3aaed9.tar.gz
PeerTube-32bb41560279dd0c75d0461f081873483e3aaed9.tar.zst
PeerTube-32bb41560279dd0c75d0461f081873483e3aaed9.zip
Server: Use ES6 promise for mongoose/node-oatuh2-server
Diffstat (limited to 'server/models/oauth-client.js')
-rw-r--r--server/models/oauth-client.js2
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
31function getByIdAndSecret (id, clientSecret) { 31function getByIdAndSecret (id, clientSecret) {
32 return this.findOne({ _id: id, clientSecret: clientSecret }) 32 return this.findOne({ _id: id, clientSecret: clientSecret }).exec()
33} 33}