MCPcopy Create free account
hub / github.com/apache/pouchdb / updateTarget

Method updateTarget

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

Source from the content-addressed store, hash-verified

9491 }
9492
9493 updateTarget(checkpoint, session) {
9494 if (this.opts.writeTargetCheckpoint) {
9495 return updateCheckpoint(this.target, this.id, checkpoint,
9496 session, this.returnValue);
9497 } else {
9498 return Promise.resolve(true);
9499 }
9500 }
9501
9502 updateSource(checkpoint, session) {
9503 if (this.opts.writeSourceCheckpoint) {

Callers 1

writeCheckpointMethod · 0.95

Calls 1

updateCheckpointFunction · 0.70

Tested by

no test coverage detected