Commit 0442ae5a authored by Tristan Cavelier's avatar Tristan Cavelier

revsInfoToHistory method returns well formated revs_info now

parent f9cfbd97
...@@ -298,7 +298,7 @@ jIO.addStorageType('revision', function (spec, my) { ...@@ -298,7 +298,7 @@ jIO.addStorageType('revision', function (spec, my) {
priv.revsInfoToHistory = function (revs_info) { priv.revsInfoToHistory = function (revs_info) {
var revisions = {"start":0,"ids":[]}, i; var revisions = {"start":0,"ids":[]}, i;
if (revs_info.length > 0) { if (revs_info.length > 0) {
revisions.start = revs_info[0].rev.split('-')[0]; revisions.start = parseInt(revs_info[0].rev.split('-')[0],10);
} }
for (i = 0; i < revs_info.length; i += 1) { for (i = 0; i < revs_info.length; i += 1) {
revisions.ids.push(revs_info[i].rev.split('-')[1]); revisions.ids.push(revs_info[i].rev.split('-')[1]);
......
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