Skip to content

Commit a9029f4

Browse files
committed
fix 0.15 event handler
1 parent 480b6af commit a9029f4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/service.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@ module.exports = function (mixinOptions) {
7070
tag: { type: "string" },
7171
payload: { type: "any", optional: true }
7272
},
73-
handler(event) {
73+
handler(ctx) {
7474
if (this.pubsub) {
75-
this.pubsub.publish(event.tag, event.payload);
75+
this.pubsub.publish(ctx.params.tag, ctx.params.payload);
7676
}
7777
}
7878
},

0 commit comments

Comments
 (0)