Conversations must have an id before saving
This commit is contained in:
parent
a7a44e9b99
commit
b27826cba5
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@
|
|||
},
|
||||
|
||||
validate: function(attributes, options) {
|
||||
var required = ['type', 'timestamp'];
|
||||
var required = ['id', 'type', 'timestamp'];
|
||||
var missing = _.filter(required, function(attr) { return !attributes[attr]; });
|
||||
if (missing.length) { return "Conversation must have " + missing; }
|
||||
|
||||
|
|
Loading…
Reference in a new issue