Skip to content

Commit

Permalink
fix (cron-sync-artifact): sync timeout due to missing await
Browse files Browse the repository at this point in the history
  • Loading branch information
Peng-YM committed Jul 19, 2022
1 parent 5244de4 commit 8f5d027
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions backend/dist/cron-sync-artifacts.min.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions backend/dist/sub-store-parser.loon.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion backend/package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion backend/src/products/cron-sync-artifacts.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
6 changes: 3 additions & 3 deletions backend/sub-store.min.js

Large diffs are not rendered by default.

0 comments on commit 8f5d027

Please sign in to comment.