Skip to content

Commit d919809

Browse files
committed
chore: fix deprecated strapi config annotation
1 parent 5e0ccf8 commit d919809

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

server/controllers/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export default {
8686

8787
zipConfig: async (ctx) => {
8888
// Check for existance of the config file sync dir.
89-
if (!fs.existsSync(strapi.config.get('plugin.config-sync.syncDir'))) {
89+
if (!fs.existsSync(strapi.config.get('plugin::config-sync.syncDir'))) {
9090
ctx.send({
9191
message: 'No config files were found.',
9292
});

server/services/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export default () => ({
7777
const fileName = `config-sync-${new Date().toJSON()}.zip`;
7878

7979
const zip = new AdmZip();
80-
zip.addLocalFolder(strapi.config.get('plugin.config-sync.syncDir'));
80+
zip.addLocalFolder(strapi.config.get('plugin::config-sync.syncDir'));
8181
const base64Data = zip.toBuffer().toString('base64');
8282

8383
return { base64Data, name: fileName, message: 'Success' };

0 commit comments

Comments
 (0)