chore: format

This commit is contained in:
Methapon2001 2023-11-24 13:52:24 +07:00
parent 21ee86ef4a
commit 6be6a7256b
No known key found for this signature in database
GPG key ID: 849924FEF46BD132

View file

@ -11,7 +11,7 @@ export class SearchController extends Controller {
@SuccessResponse(HttpStatusCode.OK)
public async searchFile(@Body() search: Search): Promise<EhrFile[]> {
const result = await esClient.search<EhrFile & { attachment: Record<string, string> }>({
index: process.env.ELASTICSEARCH_INDEX ?? 'ehr-index',
index: process.env.ELASTICSEARCH_INDEX ?? "ehr-index",
query: {
bool: {
must: search.AND?.map((v) => ({ match: { [v.field]: v.value } })),