Commit e3eee72d authored by Alexander Philipp Nowosad's avatar Alexander Philipp Nowosad
Browse files

Fix pouchdb service docCount for bookmarks

parent fc014701
...@@ -251,7 +251,7 @@ export class PouchdbService { ...@@ -251,7 +251,7 @@ export class PouchdbService {
const response = await this.getDb().find(request); const response = await this.getDb().find(request);
if ('bookmark' in response) { if ('bookmark' in response) {
const couchDbResponse = response as CouchDBFindResponse; const couchDbResponse = response as CouchDBFindResponse;
let docCount = 1; let docCount = couchDbResponse.docs.length;
while (docCount > 0 && couchDbResponse.bookmark != null) { while (docCount > 0 && couchDbResponse.bookmark != null) {
const nextPage = await this.getDb().find({ const nextPage = await this.getDb().find({
...request, ...request,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment