Skip to content

Commit

Permalink
feat: add query params to trigger ctx
Browse files Browse the repository at this point in the history
  • Loading branch information
maslow committed Jul 5, 2021
1 parent 241941d commit 1280817
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lib/faas/trigger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -302,5 +302,8 @@ export function AccessorEventCallBack(data: any) {

// 触发数据事件
const event = `/db/${params.collection}#${op}`
scheduler.emit(event, result)
scheduler.emit(event, {
exec_params: params,
exec_result: result
})
}

0 comments on commit 1280817

Please sign in to comment.