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

Function verifyAttachment

lib/index-browser.js:5070–5084  ·  view source on GitHub ↗
(digest, callback)

Source from the content-addressed store, hash-verified

5068 }
5069
5070 function verifyAttachment(digest, callback) {
5071
5072 var req = attachStore.get(digest);
5073 req.onsuccess = function (e) {
5074 if (!e.target.result) {
5075 var err = createError(MISSING_STUB,
5076 'unknown stub attachment with digest ' +
5077 digest);
5078 err.status = 412;
5079 callback(err);
5080 } else {
5081 callback();
5082 }
5083 };
5084 }
5085
5086 function verifyAttachments(finish) {
5087

Callers 1

verifyAttachmentsFunction · 0.70

Calls 2

createErrorFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…