make sure rows call goes to real couch
This commit is contained in:
parent
6a7bc23674
commit
f789f364d3
|
@ -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) }
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue