Skip to content

Commit

Permalink
apply this in streamify call
Browse files Browse the repository at this point in the history
  • Loading branch information
daywiss committed Aug 5, 2019
1 parent 9e96840 commit ee364aa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libs/streamify/streamify.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ function Wrap(name, methods, cb) {
if (!lodash.isFunction(call)) {
throw new Error(`Call to non existent function on ${name}.${path.join('.')}(${JSON.stringify(args)})`)
}
const resolve = await call(...args)
const resolve = await call.apply(methods,args)

if (highland.isStream(resolve)) {
resolve
.doto(x => {
Expand Down

0 comments on commit ee364aa

Please sign in to comment.