1
0
Fork 0
mirror of synced 2024-06-28 02:50:50 +12:00

make sure rows call goes to real couch

This commit is contained in:
Martin McKeaveney 2022-09-26 18:46:09 +01:00
parent fdca4e836c
commit 71e9f9c191

View file

@ -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) }
}