diff --git a/common/models/checkpoint.js b/common/models/checkpoint.js index 2bba736a..e243b15d 100644 --- a/common/models/checkpoint.js +++ b/common/models/checkpoint.js @@ -41,7 +41,7 @@ module.exports = function(Checkpoint) { if (checkpoint) { cb(null, checkpoint.seq); } else { - Checkpoint.create({seq: 0}, function(err, checkpoint) { + Checkpoint.create({ seq: 1 }, function(err, checkpoint) { if (err) return cb(err); cb(null, checkpoint.seq); }); diff --git a/test/checkpoint.test.js b/test/checkpoint.test.js index 0b7aa3f2..223dd03c 100644 --- a/test/checkpoint.test.js +++ b/test/checkpoint.test.js @@ -14,7 +14,7 @@ describe('Checkpoint', function() { function(next) { Checkpoint.current(function(err, seq) { if (err) next(err); - expect(seq).to.equal(2); + expect(seq).to.equal(3); next(); }); }