fix: malform query

This commit is contained in:
Methapon2001 2023-12-20 16:10:09 +07:00
parent 82836b1def
commit 2da9f91e4e
No known key found for this signature in database
GPG key ID: 849924FEF46BD132

View file

@ -467,10 +467,14 @@ export class StorageController extends Controller {
index: DEFAULT_INDEX,
query: {
bool: {
must: {
prefix: { pathname: stripLeadingSlash(`${body.path.join("/")}/`) },
match: { upload: false },
},
must: [
{
prefix: {
pathname: stripLeadingSlash(`${body.path.join("/")}/`),
},
},
{ match: { upload: false } },
],
},
},
});