biolab-unige / xtens-app

A digital repository for biomedical data based on a flexible JSON data model ( The project has been moved to a new address https://github.com/xtens-suite/xtens-app.git )
http://www.xtens.org
BSD 3-Clause "New" or "Revised" License
6 stars 1 forks source link

Delete Subject #5

Closed gicaz closed 8 years ago

gicaz commented 8 years ago

PUT http://10.116.13.60:1337/subject/1 500 (Internal Server Error)send @ jquery.js:9664 jQuery.extend.ajax @ jquery.js:9215 Backbone.ajax @ backbone.js:1428 Backbone.sync @ backbone.js:1411 Backbone.sync @ utils.js:39.extend.sync @ backbone.js:436.extend.save @ backbone.js:647 Subject.Views.Edit.Data.Views.Edit.fullExtend.saveData @ Subject.js:135 bound @ lodash.js:729 jQuery.event.dispatch @ jquery.js:4670 elemData.handle @ jquery.js:4338 utils.js:18 undefined

TERMINAL error: Sent 500 ("Server Error") response error: ValidationError: child "personalInfo" fails because ["createdAt" is not allowed, "updatedAt" is not allowed]

gicaz commented 8 years ago

Added to SubjectService in validation

createdAt:Joi().date() updatedAt:Joi().date()