@midwayjs/cron 3.20.0 → 3.20.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/dist/framework.js +2 -2
- package/package.json +4 -4
package/dist/framework.js
CHANGED
|
@@ -46,7 +46,7 @@ let CronFramework = class CronFramework extends core_1.BaseFramework {
|
|
|
46
46
|
}
|
|
47
47
|
else {
|
|
48
48
|
const options = (0, core_1.getClassMetadata)(constants_1.CRON_JOB_KEY, name);
|
|
49
|
-
jobName = options.
|
|
49
|
+
jobName = options.jobName || (0, core_1.getProviderUUId)(name);
|
|
50
50
|
jobOptions = (0, core_1.extend)(true, {}, this.defaultCronJobConfig, options.jobOptions, jobOptions);
|
|
51
51
|
// eslint-disable-next-line @typescript-eslint/no-this-alias
|
|
52
52
|
const self = this;
|
|
@@ -105,7 +105,7 @@ let CronFramework = class CronFramework extends core_1.BaseFramework {
|
|
|
105
105
|
}
|
|
106
106
|
else {
|
|
107
107
|
const options = (0, core_1.getClassMetadata)(constants_1.CRON_JOB_KEY, name);
|
|
108
|
-
return options.
|
|
108
|
+
return options.jobName || (0, core_1.getProviderUUId)(name);
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midwayjs/cron",
|
|
3
|
-
"version": "3.20.
|
|
3
|
+
"version": "3.20.4",
|
|
4
4
|
"description": "Midway Component for Cron",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"typings": "index.d.ts",
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"cron": "2.4.4"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@midwayjs/core": "^3.20.
|
|
33
|
-
"@midwayjs/mock": "^3.20.
|
|
32
|
+
"@midwayjs/core": "^3.20.4",
|
|
33
|
+
"@midwayjs/mock": "^3.20.4"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "c3fb65a7ada8829635f3c6af5ef83c65c3a43d79"
|
|
36
36
|
}
|