Skip to content

Commit 882ced8

Browse files
committed
fix getObjectView on adapter level
1 parent 1e4ee6a commit 882ced8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/adapter/lib/adapter/adapter.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2593,8 +2593,8 @@ function Adapter(options) {
25932593

25942594
// Limit search ranges for system views to the relevant namespaces
25952595
// to prevent too wide searches where the objects never will be
2596-
if (design === 'system') {
2597-
switch (search && !params.startkey && (!params.endkey || params.endkey === '\u9999')) {
2596+
if (design === 'system' && !params.startkey && (!params.endkey || params.endkey === '\u9999')) {
2597+
switch (search) {
25982598
case 'host':
25992599
params.startkey = 'system.host.';
26002600
params.endKey = 'system.host.\u9999';

0 commit comments

Comments
 (0)