浏览代码

Removed unused argument types

Shun Miyazawa 2 年之前
父节点
当前提交
4c9e3735f0
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      apps/app/src/server/service/search-delegator/elasticsearch-client.ts

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

@@ -53,9 +53,9 @@ export default class ElasticsearchClient {
   };
 
   cluster = {
-    health: (params?: ES7RequestParams.ClusterHealth & estypes.ClusterHealthRequest)
+    health: ()
     : Promise<ES7ApiResponse<ClusterHealthResponse> | estypes.ClusterHealthResponse> =>
-      this.client instanceof ES7Client ? this.client.cluster.health(params) : this.client.cluster.health(params),
+      this.client instanceof ES7Client ? this.client.cluster.health() : this.client.cluster.health(),
   };
 
   indices = {