chore: format
This commit is contained in:
parent
21ee86ef4a
commit
6be6a7256b
1 changed files with 1 additions and 1 deletions
|
|
@ -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 } })),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue