From e528db9fada1bea93f6a8d40afa5e2e6b5f146a6 Mon Sep 17 00:00:00 2001 From: evlist Date: Sun, 5 Feb 2023 17:41:33 +0100 Subject: [PATCH] Bug fix (was raising an error when no rows were returned) --- src/db/lib.ts | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/db/lib.ts b/src/db/lib.ts index 7df0c60..c32e273 100644 --- a/src/db/lib.ts +++ b/src/db/lib.ts @@ -50,16 +50,6 @@ export const getFamily = async ( endkey, ...options, }); - if (allDocs.rows.at(-1).id > endkey) { - console.error({ - caller: 'getFamilly', - key, - endkey, - options, - local, - allDocs, - }); - } return allDocs; };