소스 검색

Refactor stats method to use standard function syntax

Shun Miyazawa 9 달 전
부모
커밋
5126ffbf70
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      apps/app/src/server/service/search-delegator/elasticsearch-client-delegator/es7-client-delegator.ts

+ 1 - 1
apps/app/src/server/service/search-delegator/elasticsearch-client-delegator/es7-client-delegator.ts

@@ -42,7 +42,7 @@ export class ES7ClientDelegator {
     validateQuery: (params:RequestParams.IndicesValidateQuery): Promise<ApiResponse<estypes.IndicesValidateQueryResponse>> => {
       return this.client.indices.validateQuery(params);
     },
-    stats: async(params: RequestParams.IndicesStats): Promise<ApiResponse<estypes.IndicesStatsResponse>> => this.client.indices.stats(params),
+    stats: (params: RequestParams.IndicesStats): Promise<ApiResponse<estypes.IndicesStatsResponse>> => this.client.indices.stats(params),
   };
 
   nodes = {