From 76d6260dc0f85d24b606546d2d5f2beb4c7b8151 Mon Sep 17 00:00:00 2001 From: Boaz Poolman Date: Wed, 24 Mar 2021 23:15:05 +0100 Subject: [PATCH 1/3] add files to the .gitignore --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 2e39eb5..31965e5 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,7 @@ node_modules stats.json package-lock.json yarn.lock +files # Cruft .DS_Store From 2b20791a469b2562d3a1b914c966b522336deed6 Mon Sep 17 00:00:00 2001 From: Boaz Poolman Date: Thu, 25 Mar 2021 00:05:30 +0100 Subject: [PATCH 2/3] Fix export issue when autoReload is enabled --- controllers/config.js | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/controllers/config.js b/controllers/config.js index e5d212a..4a929c7 100644 --- a/controllers/config.js +++ b/controllers/config.js @@ -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}.` + }); + } }, /** From 76d114242c47d9bf9a1e2bb6cd49aafdebab3046 Mon Sep 17 00:00:00 2001 From: Boaz Poolman Date: Thu, 25 Mar 2021 00:06:24 +0100 Subject: [PATCH 3/3] 0.1.2 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 5bdb96d..8e3561f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "strapi-plugin-config-sync", - "version": "0.1.1", + "version": "0.1.2", "description": "Manage your Strapi database configuration as partial json files which can be imported/exported across environments. ", "strapi": { "name": "config-sync",