We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 821a6a0 commit 05433c9Copy full SHA for 05433c9
services/main.js
@@ -149,16 +149,16 @@ module.exports = {
149
150
const diff = difference(databaseConfig, fileConfig);
151
152
- Object.keys(diff).map((file) => {
+ await Promise.all(Object.keys(diff).map(async (file) => {
153
const type = file.split('.')[0]; // Grab the first part of the filename.
154
const name = file.split(/\.(.+)/)[1]; // Grab the rest of the filename minus the file extension.
155
156
if (configType && configType !== type) {
157
return;
158
}
159
160
- strapi.plugins['config-sync'].services.main.importSingleConfig(type, name);
161
- });
+ await strapi.plugins['config-sync'].services.main.importSingleConfig(type, name);
+ }));
162
},
163
164
/**
0 commit comments