diff --git a/src/routes/sync.ts b/src/routes/sync.ts index 608ec22..a303ac6 100644 --- a/src/routes/sync.ts +++ b/src/routes/sync.ts @@ -33,13 +33,13 @@ app.route({ } catch (err) { console.error(`处理 ${item.path} 失败`, item); } - // 开始同步 - for (const repo of syncList) { - try { - await sync(repo); - } catch (err) { - console.error(`同步 ${repo.path} 失败`, repo); - } + } + // 开始同步 + for (const repo of syncList) { + try { + await sync(repo); + } catch (err) { + console.error(`同步 ${repo.path} 失败`, repo); } } }