修复未初始化时区设置

This commit is contained in:
whyour 2025-02-28 00:56:40 +08:00
parent bae4073a64
commit 280085668e

View File

@ -38,7 +38,8 @@ export default async () => {
// 运行删除日志任务
const data = await systemService.getSystemConfig();
if (data && data.info && data.info.logRemoveFrequency) {
if (data && data.info) {
if (data.info.logRemoveFrequency) {
const rmlogCron = {
id: data.id as number,
name: '删除日志',
@ -55,6 +56,9 @@ export default async () => {
);
}
systemService.updateTimezone(data.info);
}
await subscriptionService.setSshConfig();
const subs = await subscriptionService.list();
for (const sub of subs) {