chore: fix deprecated strapi config annotation

pull/159/head 3.0.4
Boaz Poolman 2024-11-11 19:58:29 +01:00
parent 5e0ccf8e3d
commit d9198099a7
2 changed files with 2 additions and 2 deletions

View File

@ -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.',
});

View File

@ -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' };