Commit 52012503 authored by Tristan Cavelier's avatar Tristan Cavelier

fix bug: get method revisionstorage, getDocInfo replaced by getOption

parent 168b4de2
...@@ -432,7 +432,7 @@ jIO.addStorageType('revision', function (spec, my) { ...@@ -432,7 +432,7 @@ jIO.addStorageType('revision', function (spec, my) {
if (option["max_retry"] === 0) { if (option["max_retry"] === 0) {
option["max_retry"] = 3; option["max_retry"] = 3;
} }
prev_rev = command.getDocInfo("_rev"); prev_rev = command.getOption("rev");
if (typeof prev_rev === "string") { if (typeof prev_rev === "string") {
if (!priv.checkRevisionFormat(prev_rev)) { if (!priv.checkRevisionFormat(prev_rev)) {
that.error({ that.error({
......
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