From 5b2e3702953e62f7dc026bd71b02cb1b754127d1 Mon Sep 17 00:00:00 2001 From: Matchu Date: Tue, 6 Oct 2020 07:35:00 -0700 Subject: [PATCH] oops, fix a missing await in modeling This caused swf asset syncs to be unreliable! --- src/server/modeling.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/modeling.js b/src/server/modeling.js index 7ac117b..f2c1be3 100644 --- a/src/server/modeling.js +++ b/src/server/modeling.js @@ -262,7 +262,7 @@ async function saveSwfAssetModelingData(customPetData, context) { } } - syncToDb(db, incomingSwfAssets, { + await syncToDb(db, incomingSwfAssets, { loader: swfAssetByRemoteIdLoader, tableName: "swf_assets", buildLoaderKey: (row) => ({ type: row.type, remoteId: row.remoteId }),