@kne/fastify-task 0.1.7 → 0.1.8

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.
@@ -92,14 +92,14 @@ module.exports = fp(async (fastify, options) => {
92
92
  .catch(error => {
93
93
  return task.update({
94
94
  status: 'failed',
95
- error: error.toString(),
95
+ error: error.stack,
96
96
  completedAt: new Date()
97
97
  });
98
98
  });
99
99
  } catch (error) {
100
100
  await task.update({
101
101
  status: 'failed',
102
- error: error.toString(),
102
+ error: error.stack,
103
103
  completedAt: new Date()
104
104
  });
105
105
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kne/fastify-task",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "用于编排任务,追踪任务执行状态,结果",
5
5
  "main": "index.js",
6
6
  "scripts": {