mirror of
https://github.com/strapi/strapi.git
synced 2025-09-25 16:29:34 +00:00
Merge pull request #31 from wistityhq/fix/studio
Fix JSON pull structure
This commit is contained in:
commit
3f0c622b32
@ -326,11 +326,11 @@ module.exports = function (strapi) {
|
|||||||
return model;
|
return model;
|
||||||
}),
|
}),
|
||||||
api: _.mapValues(_.cloneDeep(strapi.api), function (api) {
|
api: _.mapValues(_.cloneDeep(strapi.api), function (api) {
|
||||||
return _.mapValues(api.models, function (model) {
|
_.forEach(api.models, function (model) {
|
||||||
model.attributes = _.omit(model.attributes, _.isFunction);
|
model.attributes = _.omit(model.attributes, _.isFunction);
|
||||||
|
|
||||||
return model;
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
return api;
|
||||||
}),
|
}),
|
||||||
templates: {}
|
templates: {}
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user