diff options
Diffstat (limited to 'app/node_modules/okdb/index.js')
| -rw-r--r-- | app/node_modules/okdb/index.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/node_modules/okdb/index.js b/app/node_modules/okdb/index.js index ffe3ff1..2cf6d8b 100644 --- a/app/node_modules/okdb/index.js +++ b/app/node_modules/okdb/index.js @@ -182,7 +182,7 @@ function autoincrement(wrapper, schema, data) { var last = wrapper.chain().sort(field).first().value(); var index = last ? last[field] : -1; var incremented = {}; - incremented[field] = (parseInt(index) + 1) % Number.MAX_SAFE_INT; + incremented[field] = (parseInt(index) + 1); return assign(data, incremented); }, data); } |
