@whyour/qinglong 2.18.2-5 → 2.18.2-6

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": "2.18.2-5",
3
+ "version": "2.18.2-6",
4
4
  "description": "Timed task management platform supporting Python3, JavaScript, Shell, Typescript",
5
5
  "repository": {
6
6
  "type": "git",
@@ -32,17 +32,20 @@ exports.default = async () => {
32
32
  }, true);
33
33
  // 运行删除日志任务
34
34
  const data = await systemService.getSystemConfig();
35
- if (data && data.info && data.info.logRemoveFrequency) {
36
- const rmlogCron = {
37
- id: data.id,
38
- name: '删除日志',
39
- command: `ql rmlog ${data.info.logRemoveFrequency}`,
40
- runOrigin: 'system',
41
- };
42
- await scheduleService.cancelIntervalTask(rmlogCron);
43
- scheduleService.createIntervalTask(rmlogCron, {
44
- days: data.info.logRemoveFrequency,
45
- }, true);
35
+ if (data && data.info) {
36
+ if (data.info.logRemoveFrequency) {
37
+ const rmlogCron = {
38
+ id: data.id,
39
+ name: '删除日志',
40
+ command: `ql rmlog ${data.info.logRemoveFrequency}`,
41
+ runOrigin: 'system',
42
+ };
43
+ await scheduleService.cancelIntervalTask(rmlogCron);
44
+ scheduleService.createIntervalTask(rmlogCron, {
45
+ days: data.info.logRemoveFrequency,
46
+ }, true);
47
+ }
48
+ systemService.updateTimezone(data.info);
46
49
  }
47
50
  await subscriptionService.setSshConfig();
48
51
  const subs = await subscriptionService.list();