Skip to content

Commit 1473a1f

Browse files
authored
Merge pull request #5800 from Countly/anna/release
[core] Loading configs before processing aggregated data regeneration
2 parents 74c4e37 + c549e3d commit 1473a1f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

bin/scripts/fix-data/regenerate_aggregated_data.js

+6
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ Promise.all([pluginManager.dbConnection("countly"), pluginManager.dbConnection("
4040
query._id = {$in: appList.map(app_id=>common.db.ObjectID(app_id))};
4141
}
4242
const apps = await countlyDb.collection("apps").find(query, {_id: 1, name: 1, timezone: 1}).toArray();
43+
44+
await new Promise((resolve)=>{
45+
common.plugins.loadConfigs(countlyDb, function() {
46+
resolve();
47+
});
48+
});
4349
if (!apps || !apps.length) {
4450
return close();
4551
}

0 commit comments

Comments
 (0)