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
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1 -1
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": {
+1 -1
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() {
+3 -3
View File
File diff suppressed because one or more lines are too long