MCPcopy
hub / github.com/apache/pouchdb / updateSource

Method updateSource

lib/index.es.js:9502–9517  ·  view source on GitHub ↗
(checkpoint, session)

Source from the content-addressed store, hash-verified

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

Callers 1

writeCheckpointMethod · 0.45

Calls 2

updateCheckpointFunction · 0.70
isForbiddenErrorFunction · 0.70

Tested by

no test coverage detected