diff options
| -rw-r--r-- | app/node_modules/okresource/index.js | 4 |
1 files changed, 2 insertions, 2 deletions
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')); }); |
