Skip to content

Commit 1d7c935

Browse files
emilygilbertsjanl
authored andcommitted
fix getCheckpoint 404 handling on iinitial replication
1 parent a8cb8b6 commit 1d7c935

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • packages/node_modules/pouchdb-checkpointer/src

packages/node_modules/pouchdb-checkpointer/src/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,10 @@ class CheckpointerInternal {
193193
return LOWEST_SEQ;
194194
}
195195
}
196+
//missing sourceDoc on initial replication returns LOWEST_SEQ
197+
if (err.status === 404) {
198+
return LOWEST_SEQ;
199+
}
196200
throw err;
197201
}
198202
}

0 commit comments

Comments
 (0)