Skip to content

Commit 8bf87a0

Browse files
committed
Flattened some code.
1 parent 1ebbfe6 commit 8bf87a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -844,11 +844,11 @@ addHiddenPropsToTarget(RethinkDBAdapter.prototype, {
844844
return Promise.all(tasks).then(function () {
845845
// beforeFind lifecycle hook
846846
op = opts.op = 'beforeFind'
847-
return resolve(self[op](mapper, id, opts)).then(function () {
847+
return resolve(self[op](mapper, id, opts))
848+
}).then(function () {
848849
op = opts.op = 'find'
849850
self.dbg(op, id, opts)
850851
return self.selectTable(mapper, opts).get(id).run(self.getOpt('runOpts', opts))
851-
})
852852
}).then(function (_record) {
853853
if (!_record) {
854854
return

0 commit comments

Comments
 (0)