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