diff options
| author | Sean Fridman <fridman@mail.sfsu.edu> | 2015-04-10 22:35:24 -0400 |
|---|---|---|
| committer | Sean Fridman <fridman@mail.sfsu.edu> | 2015-04-11 01:38:43 -0400 |
| commit | fd0d777ee81219577ef9416fab7f985920c3ae29 (patch) | |
| tree | ec7d5deeef5f2deca8068a6983534e0970c38e03 /app/node_modules/okschema/index.js | |
| parent | 3f346a970dd0823816a5ad2b0dc2b7749e99845c (diff) | |
Fix autoincrement algo bug
Diffstat (limited to 'app/node_modules/okschema/index.js')
| -rw-r--r-- | app/node_modules/okschema/index.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/node_modules/okschema/index.js b/app/node_modules/okschema/index.js index 1528eab..4633e7a 100644 --- a/app/node_modules/okschema/index.js +++ b/app/node_modules/okschema/index.js @@ -97,7 +97,8 @@ function OKSchema(spec) { // Register autoincrement fields // NOTE Does not work for nested fields var autoIncrementFields = specKeys.reduce(function(arr, prop) { - if (spec[prop] === 'autoincrement') { + var specProp = spec[prop]; + if (specProp.autoincrement) { arr.push(prop); } return arr; |
