How PouchDB Determines that Changes were successfully pushed to CouchDB
- During a replication, after PouchDB determines which docs should be pushed up and their contents, replicate's
writeDocs
function is called which in turn calls tobulkDocs
function. - When the target database is a CouchDB, the
bulkDocs
function is aliased to thepouchdb-adapter-http
's_bulkDocs
function. _bulkDocs
then passes the request tofetchJSON
function which then passes it toourFetch
. Ifresponse.ok
is not truthy, an error is thrown [here](https://github.com/pouc