File tree Expand file tree Collapse file tree 3 files changed +13
-4
lines changed Expand file tree Collapse file tree 3 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ node_modules
44stats.json
55package-lock.json
66yarn.lock
7+ files
78
89# Cruft
910.DS_Store
Original file line number Diff line number Diff line change @@ -15,11 +15,19 @@ module.exports = {
1515 * @returns {void }
1616 */
1717 exportAll : async ( ctx ) => {
18+ if ( strapi . config . get ( 'autoReload' ) ) {
19+ ctx . send ( {
20+ message : `Config was successfully exported to ${ strapi . plugins [ 'config-sync' ] . config . destination } .`
21+ } ) ;
22+ }
23+
1824 await strapi . plugins [ 'config-sync' ] . services . main . exportAllConfig ( ) ;
1925
20- ctx . send ( {
21- message : `Config was successfully exported to ${ strapi . plugins [ 'config-sync' ] . config . destination } .`
22- } ) ;
26+ if ( ! strapi . config . get ( 'autoReload' ) ) {
27+ ctx . send ( {
28+ message : `Config was successfully exported to ${ strapi . plugins [ 'config-sync' ] . config . destination } .`
29+ } ) ;
30+ }
2331 } ,
2432
2533 /**
Original file line number Diff line number Diff line change 11{
22 "name" : " strapi-plugin-config-sync" ,
3- "version" : " 0.1.1 " ,
3+ "version" : " 0.1.2 " ,
44 "description" : " Manage your Strapi database configuration as partial json files which can be imported/exported across environments. " ,
55 "strapi" : {
66 "name" : " config-sync" ,
You can’t perform that action at this time.
0 commit comments