mirror of
https://git.mirrors.martin98.com/https://github.com/sub-store-org/Sub-Store.git
synced 2026-03-20 11:22:37 +08:00
fix (cron-sync-artifact): sync timeout due to missing await
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user