Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
fetchExistingDocs(function (err) {
/* istanbul ignore if */
if (err) {
return callback(err);
}
processDocs(revLimit, docInfos, api, fetchedDocs, txn, results,
writeDoc, opts, finish);
});
});
fetchExistingDocs(function (err) {
/* istanbul ignore if */
if (err) {
return callback(err)
}
processDocs(revLimit, docInfos, api, fetchedDocs, txn, results,
writeDoc, opts, finish)
})
})
fetchExistingDocs(function (err) {
/* istanbul ignore if */
if (err) {
return callback(err);
}
pouchdbAdapterUtils.processDocs(revLimit, docInfos, api, fetchedDocs, txn, results,
writeDoc, opts, finish);
});
});
fetchExistingDocs(function (err) {
/* istanbul ignore if */
if (err) {
return callback(err);
}
processDocs(revLimit, docInfos, api, fetchedDocs, txn, results,
writeDoc, opts, finish);
});
});
fetchExistingDocs(function (err) {
/* istanbul ignore if */
if (err) {
return callback(err);
}
pouchdbAdapterUtils.processDocs(revLimit, docInfos, api, fetchedDocs, txn, results,
writeDoc, opts, finish);
});
});
function websqlProcessDocs() {
processDocs(dbOpts.revs_limit, docInfos, api, fetchedDocs, tx,
results, writeDoc, opts);
}
function idbProcessDocs() {
processDocs(dbOpts.revs_limit, docInfos, api, fetchedDocs,
txn, results, writeDoc, opts, onAllDocsProcessed);
}