diff options
| author | Sean Fridman <fridman@mail.sfsu.edu> | 2015-04-08 20:07:08 -0400 |
|---|---|---|
| committer | Sean Fridman <fridman@mail.sfsu.edu> | 2015-04-08 20:07:33 -0400 |
| commit | 06ef2f2337dd349af160e2c50dbef76f68f406d5 (patch) | |
| tree | e8b2eb91d66d825d14225621edc72a542a8ef180 /app | |
| parent | fe1ea91f73059c146369ccb2404fcaf6d03d2f4d (diff) | |
I did a bug :(
Diffstat (limited to 'app')
| -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')); }); |
