diff --git a/server/controllers/config.js b/server/controllers/config.js index 828f42c..44c02f5 100644 --- a/server/controllers/config.js +++ b/server/controllers/config.js @@ -86,7 +86,7 @@ export default { zipConfig: async (ctx) => { // Check for existance of the config file sync dir. - if (!fs.existsSync(strapi.config.get('plugin.config-sync.syncDir'))) { + if (!fs.existsSync(strapi.config.get('plugin::config-sync.syncDir'))) { ctx.send({ message: 'No config files were found.', }); diff --git a/server/services/main.js b/server/services/main.js index 6d3da39..5a73e6a 100644 --- a/server/services/main.js +++ b/server/services/main.js @@ -77,7 +77,7 @@ export default () => ({ const fileName = `config-sync-${new Date().toJSON()}.zip`; const zip = new AdmZip(); - zip.addLocalFolder(strapi.config.get('plugin.config-sync.syncDir')); + zip.addLocalFolder(strapi.config.get('plugin::config-sync.syncDir')); const base64Data = zip.toBuffer().toString('base64'); return { base64Data, name: fileName, message: 'Success' };