@kne/fastify-task 0.1.0-alpha.0 → 0.1.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -42,7 +42,7 @@ module.exports = fp(async (fastify, options) => {
42
42
  });
43
43
  },
44
44
  complete: async result => {
45
- await options.task[task.type](result);
45
+ await options.task[task.type]({ task, result });
46
46
  await task.update({
47
47
  status: 'success',
48
48
  output: result,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kne/fastify-task",
3
- "version": "0.1.0-alpha.0",
3
+ "version": "0.1.0-alpha.1",
4
4
  "description": "用于编排任务,追踪任务执行状态,结果",
5
5
  "main": "index.js",
6
6
  "scripts": {