make sure rows call goes to real couch

This commit is contained in:
Martin McKeaveney 2022-09-26 18:46:09 +01:00
parent 6a7bc23674
commit f789f364d3
1 changed files with 1 additions and 1 deletions

View File

@ -333,7 +333,7 @@ exports.bulkDestroy = async ctx => {
exports.search = async ctx => { exports.search = async ctx => {
// Fetch the whole table when running in cypress, as search doesn't work // 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) } return { rows: await exports.fetch(ctx) }
} }