This commit is contained in:
zadam
2020-01-25 13:46:55 +01:00
parent 7cad386a56
commit 516e6c35da
5 changed files with 13 additions and 23 deletions

View File

@@ -1,7 +1,6 @@
import utils from './utils.js';
import toastService from "./toast.js";
import server from "./server.js";
import appContext from "./app_context.js";
const $outstandingSyncsCount = $("#outstanding-syncs-count");
@@ -133,6 +132,8 @@ async function consumeSyncData() {
const outsideSyncData = allSyncData.filter(sync => sync.sourceId !== glob.sourceId);
try {
const appContext = (await import("./app_context.js")).default;
// the update process should be synchronous as a whole but individual handlers can run in parallel
await Promise.all([
() => appContext.trigger('syncData', {data: allSyncData}),