mirror of
				https://github.com/strapi/strapi.git
				synced 2025-10-31 01:47:13 +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.
 |     // Set the models.
 | ||||||
|     output.models = strapi.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.
 |     // Format `config.api` for multi templates models.
 | ||||||
|     _.forEach(strapi.api, function (api, key) { |     _.forEach(strapi.api, function (api, key) { | ||||||
|       if (api.templates) { |       if (api.templates) { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Loïc Saint-Roch
						Loïc Saint-Roch