chore: small adjust

This commit is contained in:
Methapon2001 2023-12-14 11:03:35 +07:00
parent e424a23c3b
commit bbeda11fc6
No known key found for this signature in database
GPG key ID: 849924FEF46BD132
3 changed files with 189 additions and 2 deletions

View file

@ -634,7 +634,7 @@ export class StorageController extends Controller {
const pathname = body.path.join("/") + `/${body.file}`;
const search = await esClient.search<StorageFile & { attachment: Record<string, string> }>({
index: DEFAULT_INDEX!,
index: DEFAULT_INDEX,
query: {
match: { pathname },
},