Skip to content

Commit

Permalink
chore: fix deprecated strapi config annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
boazpoolman committed Nov 11, 2024
1 parent 5e0ccf8 commit d919809
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion server/controllers/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.',
});
Expand Down
2 changes: 1 addition & 1 deletion server/services/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' };
Expand Down

0 comments on commit d919809

Please sign in to comment.