Skip to content

Commit

Permalink
fix: wrap task should always return promise (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
atian25 authored and dead-horse committed Jun 3, 2019
1 parent 73bc1a0 commit bce393f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/load_schedule.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function getScheduleLoader(app) {

let task;
if (is.class(schedule)) {
task = (ctx, data) => {
task = async (ctx, data) => {
const s = new schedule(ctx);
s.subscribe = app.toAsyncFunction(s.subscribe);
return s.subscribe(data);
Expand Down

0 comments on commit bce393f

Please sign in to comment.