mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-22 22:36:06 +08:00
修复未初始化时区设置
This commit is contained in:
parent
bae4073a64
commit
280085668e
|
@ -38,21 +38,25 @@ export default async () => {
|
||||||
|
|
||||||
// 运行删除日志任务
|
// 运行删除日志任务
|
||||||
const data = await systemService.getSystemConfig();
|
const data = await systemService.getSystemConfig();
|
||||||
if (data && data.info && data.info.logRemoveFrequency) {
|
if (data && data.info) {
|
||||||
const rmlogCron = {
|
if (data.info.logRemoveFrequency) {
|
||||||
id: data.id as number,
|
const rmlogCron = {
|
||||||
name: '删除日志',
|
id: data.id as number,
|
||||||
command: `ql rmlog ${data.info.logRemoveFrequency}`,
|
name: '删除日志',
|
||||||
runOrigin: 'system' as const,
|
command: `ql rmlog ${data.info.logRemoveFrequency}`,
|
||||||
};
|
runOrigin: 'system' as const,
|
||||||
await scheduleService.cancelIntervalTask(rmlogCron);
|
};
|
||||||
scheduleService.createIntervalTask(
|
await scheduleService.cancelIntervalTask(rmlogCron);
|
||||||
rmlogCron,
|
scheduleService.createIntervalTask(
|
||||||
{
|
rmlogCron,
|
||||||
days: data.info.logRemoveFrequency,
|
{
|
||||||
},
|
days: data.info.logRemoveFrequency,
|
||||||
true,
|
},
|
||||||
);
|
true,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
systemService.updateTimezone(data.info);
|
||||||
}
|
}
|
||||||
|
|
||||||
await subscriptionService.setSshConfig();
|
await subscriptionService.setSshConfig();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user