From 06ef2f2337dd349af160e2c50dbef76f68f406d5 Mon Sep 17 00:00:00 2001 From: Sean Fridman Date: Wed, 8 Apr 2015 20:07:08 -0400 Subject: I did a bug :( --- app/node_modules/okresource/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/node_modules/okresource/index.js') diff --git a/app/node_modules/okresource/index.js b/app/node_modules/okresource/index.js index 80279dc..600f0a1 100644 --- a/app/node_modules/okresource/index.js +++ b/app/node_modules/okresource/index.js @@ -209,7 +209,7 @@ function OKResourceInstance(resource, options) { }); }; - this.update = function(data) { + this.update = function(id, data) { return Q.promise(function(resolve, reject) { var valid = Object.keys(staticData).every(function(prop) { return staticData[prop] === data[prop]; @@ -224,7 +224,7 @@ function OKResourceInstance(resource, options) { }); }; - this.updateOrCreate = function(data) { + this.updateOrCreate = function(id, data) { return Q.promise(function(resolve, reject) { reject(new Error('Cannot updateOrCreate static resource')); }); -- cgit v1.2.3-70-g09d2