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:
parent
f24c4e4462
commit
32bb415602
4 changed files with 9 additions and 9 deletions
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue