mirror of
https://github.com/strapi/strapi.git
synced 2025-08-30 19:56:05 +00:00
Merge pull request #32 from wistityhq/fix/configDashboard
Remove toJSON attribute from models in dashboard config controller
This commit is contained in:
commit
932af02f18
@ -56,6 +56,11 @@ module.exports = function * () {
|
||||
// Set the models.
|
||||
output.models = strapi.models;
|
||||
|
||||
// Delete `toJSON` attribute in every models.
|
||||
_.forEach(output.models, function (model) {
|
||||
delete model.attributes.toJSON;
|
||||
});
|
||||
|
||||
// Format `config.api` for multi templates models.
|
||||
_.forEach(strapi.api, function (api, key) {
|
||||
if (api.templates) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user