fix(v4): Import on bootstrap
parent
f167e664e3
commit
50d691f76d
|
@ -14,9 +14,9 @@ const fs = require('fs');
|
||||||
|
|
||||||
module.exports = async () => {
|
module.exports = async () => {
|
||||||
// Import on bootstrap.
|
// Import on bootstrap.
|
||||||
if (strapi.plugins['config-sync'].config.importOnBootstrap) {
|
if (strapi.config.get('plugin.config-sync.importOnBootstrap')) {
|
||||||
if (fs.existsSync(strapi.plugins['config-sync'].config.destination)) {
|
if (fs.existsSync(strapi.config.get('plugin.config-sync.destination'))) {
|
||||||
await strapi.plugins['config-sync'].services.main.importAllConfig();
|
await strapi.plugin('config-sync').service('main').importAllConfig();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue