From e2e9e4bb6a9e90687292961526a82ac881f2f3bb Mon Sep 17 00:00:00 2001 From: Sean Fridman Date: Wed, 8 Apr 2015 18:25:10 -0400 Subject: Fix resource bug where default id not set correctly --- app/node_modules/okresource/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/node_modules/okresource/index.js') 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'); -- cgit v1.2.3-70-g09d2