Update packages/strapi-plugin-content-manager/config/functions/bootstrap.js

Co-Authored-By: soupette <cyril.lpz@gmail.com>
This commit is contained in:
hhh 2018-11-26 16:10:13 +01:00 committed by GitHub
parent 9368d45c24
commit 09ae14bc2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,7 +53,7 @@ module.exports = async cb => {
}, {}); }, {});
// Reference all current models // Reference all current models
const appModels = Object.keys(pluginsModel).reduce((acc, curr) => { const appModels = Object.keys(pluginsModel).reduce((acc, curr) => {
const models = Object.keys(_.get(pluginModels, [curr, 'models'], {})); const models = Object.keys(_.get(pluginsModel, [curr, 'models'], {}));
return acc.concat(models); return acc.concat(models);
}, Object.keys(strapi.models).filter(m => m !== 'core_store')); }, Object.keys(strapi.models).filter(m => m !== 'core_store'));