Commit f84ef0ef authored by Tristan Cavelier's avatar Tristan Cavelier

fix bug in command.js, priv.doc._id does not exists anymore

parent 16eca3ac
...@@ -157,7 +157,7 @@ var command = function(spec, my) { ...@@ -157,7 +157,7 @@ var command = function(spec, my) {
* @param {object} storage The storage. * @param {object} storage The storage.
*/ */
that.validate = function (storage) { that.validate = function (storage) {
if (!(priv.docid || priv.doc._id).match(/^[^\/]+([\/][^\/]+)?$/)) { if (!priv.docid.match(/^[^\/]+([\/][^\/]+)?$/)) {
that.error({ that.error({
status:21,statusText:'Invalid Document Id', status:21,statusText:'Invalid Document Id',
error:'invalid_document_id', error:'invalid_document_id',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment