summaryrefslogtreecommitdiff
path: root/app/node_modules/okresource/index.js
diff options
context:
space:
mode:
authorSean Fridman <fridman@mail.sfsu.edu>2015-04-08 18:25:10 -0400
committerSean Fridman <fridman@mail.sfsu.edu>2015-04-08 18:25:10 -0400
commite2e9e4bb6a9e90687292961526a82ac881f2f3bb (patch)
tree3e932a53483dd7ee3962f1377bfdfe7d14c50cc5 /app/node_modules/okresource/index.js
parentf7a6d15e313bf5502a885a6736c7f0de161a9520 (diff)
Fix resource bug where default id not set correctly
Diffstat (limited to 'app/node_modules/okresource/index.js')
-rw-r--r--app/node_modules/okresource/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/node_modules/okresource/index.js b/app/node_modules/okresource/index.js
index 122b293..6010d7d 100644
--- a/app/node_modules/okresource/index.js
+++ b/app/node_modules/okresource/index.js
@@ -26,7 +26,7 @@ function OKResource(options) {
idField = prop;
return idField;
// If schema has a prop called 'id', default to that one
- }, schema.id && 'id');
+ }, schema.spec.id && 'id');
if (!idField)
throw new Error('Bad schema: no ID field');