- fixed typo in updateOrCreate method.
This commit is contained in:
parent
d248de7f9d
commit
75c96bdaa9
|
@ -221,7 +221,7 @@ CradleAdapter.prototype.updateOrCreate = function(model, data, callback) {
|
|||
if(err) {
|
||||
this.create(model, data, callback);
|
||||
} else {
|
||||
this.updateAttributes(mode, data.id, data, callback);
|
||||
this.updateAttributes(model, data.id, data, callback);
|
||||
}
|
||||
}.bind(this)
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue