- fixed typo in updateOrCreate method.

This commit is contained in:
Muneeb Samuels 2012-11-04 22:24:15 +02:00
parent d248de7f9d
commit 75c96bdaa9
1 changed files with 1 additions and 1 deletions

View File

@ -221,7 +221,7 @@ CradleAdapter.prototype.updateOrCreate = function(model, data, callback) {
if(err) { if(err) {
this.create(model, data, callback); this.create(model, data, callback);
} else { } else {
this.updateAttributes(mode, data.id, data, callback); this.updateAttributes(model, data.id, data, callback);
} }
}.bind(this) }.bind(this)
) )