fix (cron-sync-artifact): sync timeout due to missing await

This commit is contained in:
Peng-YM
2022-07-19 20:55:18 +08:00
parent f27ce7ee48
commit 93a98e4cec
5 changed files with 11 additions and 11 deletions

View File

@@ -12,7 +12,7 @@ import $ from '@/core/app';
if (!artifacts || artifacts.length === 0) return;
const shouldSync = artifacts.some((artifact) => artifact.sync);
if (shouldSync) doSync();
if (shouldSync) await doSync();
})().finally(() => $.done());
async function doSync() {