cozy / cozy-stack

Simple, Versatile, Yours
https://docs.cozy.io/en/cozy-stack/
GNU Affero General Public License v3.0
1.13k stars 137 forks source link

Avoid using startkey_docid in _all_docs #4377

Closed nono closed 5 months ago

nono commented 5 months ago

It was working, but relying on a bug of CouchDB, which may be fixed in later versions. Let's use a safer version with startkey and endkey.

nono commented 5 months ago

startkey is a JSON, not a string

nono commented 5 months ago

Well, pkg/couchdb already transforms the string in JSON, so there is no need to manually add the quotes (I didn't remember that when starting the PR).