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,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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user