diff options
| author | Sean Fridman <fridman@mail.sfsu.edu> | 2015-04-08 18:25:10 -0400 |
|---|---|---|
| committer | Sean Fridman <fridman@mail.sfsu.edu> | 2015-04-08 18:25:10 -0400 |
| commit | e2e9e4bb6a9e90687292961526a82ac881f2f3bb (patch) | |
| tree | 3e932a53483dd7ee3962f1377bfdfe7d14c50cc5 /app/node_modules/okresource/index.js | |
| parent | f7a6d15e313bf5502a885a6736c7f0de161a9520 (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.js | 2 |
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'); |
