From 75c96bdaa96542d62e9cb5040bc71325d6a5b315 Mon Sep 17 00:00:00 2001 From: Muneeb Samuels Date: Sun, 4 Nov 2012 22:24:15 +0200 Subject: [PATCH] - fixed typo in updateOrCreate method. --- lib/adapters/cradle.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/adapters/cradle.js b/lib/adapters/cradle.js index f1d05519..cd1b74a7 100644 --- a/lib/adapters/cradle.js +++ b/lib/adapters/cradle.js @@ -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) )