Skip to content

Commit aa7009c

Browse files
committed
fix: 修复更新完成不重启配置项失效的问题
1 parent d548b0e commit aa7009c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/apps/update.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -340,10 +340,10 @@ export const TaskUpdate = karin.task('Karin-定时更新检查', '*/10 * * * *',
340340

341341
await sendToFirstAdmin(selfId, [
342342
segment.text(
343-
`检测到插件 [node-karin] 有新版本~\n已自动更新 (v${up.local} → v${up.remote}),即将重启以应用更新`
343+
`检测到 [node-karin] 有新版本~\n已自动更新 (v${up.local} → v${up.remote}),即将重启以应用更新`
344344
),
345345
])
346-
await restartDirect({ isPm2: false, reloadDeps: true })
346+
if (config.restart) await restartDirect({ isPm2: false, reloadDeps: true })
347347
return true
348348
}
349349

0 commit comments

Comments
 (0)