MCPcopy Index your code
hub / github.com/apache/pouchdb / updateSource

Method updateSource

lib/index.js:9507–9522  ·  view source on GitHub ↗
(checkpoint, session)

Source from the content-addressed store, hash-verified

9505 }
9506
9507 updateSource(checkpoint, session) {
9508 if (this.opts.writeSourceCheckpoint) {
9509 var self = this;
9510 return updateCheckpoint(this.src, this.id, checkpoint,
9511 session, this.returnValue)
9512 .catch(function (err) {
9513 if (isForbiddenError(err)) {
9514 self.opts.writeSourceCheckpoint = false;
9515 return true;
9516 }
9517 throw err;
9518 });
9519 } else {
9520 return Promise.resolve(true);
9521 }
9522 }
9523
9524 getCheckpoint() {
9525 var self = this;

Callers 1

writeCheckpointMethod · 0.45

Calls 2

updateCheckpointFunction · 0.70
isForbiddenErrorFunction · 0.70

Tested by

no test coverage detected