Conversations must have an id before saving

pull/749/head
lilia 10 years ago
parent a7a44e9b99
commit b27826cba5

@ -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…
Cancel
Save