mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 08:03:30 +02:00
Update rethinkdb's run() to new syntax.
This commit is contained in:
@@ -21,10 +21,6 @@ module.exports.close = function(conn, options) {
|
||||
|
||||
module.exports.run = function(conn, q, options) {
|
||||
var resolver = Promise.defer()
|
||||
if (!options) {
|
||||
options = {}
|
||||
}
|
||||
options.connection = conn
|
||||
q.run(options, resolver.callback)
|
||||
q.run(conn, options || {}, resolver.callback)
|
||||
return resolver.promise
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user