فهرست منبع

Refactor stats method to use standard function syntax

Shun Miyazawa 9 ماه پیش
والد
کامیت
5126ffbf70

+ 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 = {