From 71e9f9c191c6f31d37b8327b1e1dc93a13ef4724 Mon Sep 17 00:00:00 2001 From: Martin McKeaveney Date: Mon, 26 Sep 2022 18:46:09 +0100 Subject: [PATCH] make sure rows call goes to real couch --- packages/server/src/api/controllers/row/internal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/server/src/api/controllers/row/internal.js b/packages/server/src/api/controllers/row/internal.js index 0c92959db8..e59d2cb38f 100644 --- a/packages/server/src/api/controllers/row/internal.js +++ b/packages/server/src/api/controllers/row/internal.js @@ -333,7 +333,7 @@ exports.bulkDestroy = async ctx => { exports.search = async ctx => { // Fetch the whole table when running in cypress, as search doesn't work - if (env.isCypress()) { + if (!env.COUCH_DB_URL && env.isCypress()) { return { rows: await exports.fetch(ctx) } }