summaryrefslogtreecommitdiff
path: root/app/node_modules/okresource
diff options
context:
space:
mode:
Diffstat (limited to 'app/node_modules/okresource')
-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');