Skip to content

Fix search for resources without searchable keys

Hermann requested to merge fix/125 into master

In case that a resource had no item keys that were searchable (strings that are not object ids), a request would be build containing where={"$or":[]}. This crashed the API.

There was already a check for that, but apparently an empty list does not evaluate to false in js. We instead make sure that searchKeys is always a list and check for its length.

Fixes #125 (closed)

Edited by Hermann

Merge request reports

Loading