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 5244de4dba
commit 8f5d027080
5 changed files with 11 additions and 11 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
{
"name": "sub-store",
"version": "2.11.4",
"version": "2.11.5",
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.",
"main": "src/main.js",
"scripts": {

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() {

File diff suppressed because one or more lines are too long