fix: malform query
This commit is contained in:
parent
82836b1def
commit
2da9f91e4e
1 changed files with 8 additions and 4 deletions
|
|
@ -467,10 +467,14 @@ export class StorageController extends Controller {
|
||||||
index: DEFAULT_INDEX,
|
index: DEFAULT_INDEX,
|
||||||
query: {
|
query: {
|
||||||
bool: {
|
bool: {
|
||||||
must: {
|
must: [
|
||||||
prefix: { pathname: stripLeadingSlash(`${body.path.join("/")}/`) },
|
{
|
||||||
match: { upload: false },
|
prefix: {
|
||||||
},
|
pathname: stripLeadingSlash(`${body.path.join("/")}/`),
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{ match: { upload: false } },
|
||||||
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue