1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-04 18:29:27 +02:00

Server: Use ES6 promise for mongoose/node-oatuh2-server

This commit is contained in:
Chocobozzz 2016-07-27 21:15:07 +02:00
parent f24c4e4462
commit 32bb415602
4 changed files with 9 additions and 9 deletions

View file

@ -29,5 +29,5 @@ function loadFirstClient (callback) {
}
function getByIdAndSecret (id, clientSecret) {
return this.findOne({ _id: id, clientSecret: clientSecret })
return this.findOne({ _id: id, clientSecret: clientSecret }).exec()
}