mirror of
https://github.com/strapi/strapi.git
synced 2025-10-29 17:04:13 +00:00
Guidelines
This commit is contained in:
parent
c42e3eff8b
commit
24c4f6241e
@ -221,8 +221,6 @@ module.exports = function (strapi) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
fn({
|
||||
appId: strapi.config.studio.appId,
|
||||
token: strapi.token,
|
||||
@ -324,13 +322,13 @@ module.exports = function (strapi) {
|
||||
config: strapi.config,
|
||||
models: _.mapValues(_.cloneDeep(strapi.models), function (model) {
|
||||
model.attributes = _.omit(model.attributes, _.isFunction);
|
||||
|
||||
|
||||
return model;
|
||||
}),
|
||||
api: _.mapValues(_.cloneDeep(strapi.api), function (api) {
|
||||
return _.mapValues(api.models, function (model) {
|
||||
model.attributes = _.omit(model.attributes, _.isFunction);
|
||||
|
||||
|
||||
return model;
|
||||
});
|
||||
}),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user