Fix export issue when autoReload is enabled
parent
76d6260dc0
commit
2b20791a46
|
@ -15,11 +15,19 @@ module.exports = {
|
|||
* @returns {void}
|
||||
*/
|
||||
exportAll: async (ctx) => {
|
||||
if (strapi.config.get('autoReload')) {
|
||||
ctx.send({
|
||||
message: `Config was successfully exported to ${strapi.plugins['config-sync'].config.destination}.`
|
||||
});
|
||||
}
|
||||
|
||||
await strapi.plugins['config-sync'].services.main.exportAllConfig();
|
||||
|
||||
ctx.send({
|
||||
message: `Config was successfully exported to ${strapi.plugins['config-sync'].config.destination}.`
|
||||
});
|
||||
if (!strapi.config.get('autoReload')) {
|
||||
ctx.send({
|
||||
message: `Config was successfully exported to ${strapi.plugins['config-sync'].config.destination}.`
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue