@whyour/qinglong 0.19.3 → 0.19.4

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@whyour/qinglong",
3
- "version": "0.19.3",
3
+ "version": "0.19.4",
4
4
  "description": "Timed task management platform supporting Python3, JavaScript, Shell, Typescript",
5
5
  "repository": {
6
6
  "type": "git",
@@ -95,9 +95,9 @@ let SubscriptionService = class SubscriptionService {
95
95
  throw error;
96
96
  }
97
97
  }
98
- async handleTask(_doc, needCreate = true, runImmediately = false) {
99
- const { url } = (0, subscription_2.formatUrl)(_doc);
100
- const doc = Object.assign(Object.assign({}, _doc), { command: (0, subscription_2.formatCommand)(_doc, url) });
98
+ async handleTask(doc, needCreate = true, runImmediately = false) {
99
+ const { url } = (0, subscription_2.formatUrl)(doc);
100
+ doc.command = (0, subscription_2.formatCommand)(doc, url);
101
101
  if (doc.schedule_type === 'crontab') {
102
102
  this.scheduleService.cancelCronTask(doc);
103
103
  needCreate &&