فهرست منبع

Fix return type for indices method in ES8ClientDelegator and ES9ClientDelegator to ensure correct response type

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

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

@@ -14,7 +14,7 @@ export class ES8ClientDelegator {
 
   cat = {
     aliases: (params: estypes.CatAliasesRequest): Promise<estypes.CatAliasesResponse> => this.client.cat.aliases(params),
-    indices: (params: estypes.CatIndicesRequest): Promise<estypes.CatAliasesResponse> => this.client.cat.indices(params),
+    indices: (params: estypes.CatIndicesRequest): Promise<estypes.CatIndicesResponse> => this.client.cat.indices(params),
   };
 
   cluster = {

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

@@ -14,7 +14,7 @@ export class ES9ClientDelegator {
 
   cat = {
     aliases: (params: estypes.CatAliasesRequest): Promise<estypes.CatAliasesResponse> => this.client.cat.aliases(params),
-    indices: (params: estypes.CatIndicesRequest): Promise<estypes.CatAliasesResponse> => this.client.cat.indices(params),
+    indices: (params: estypes.CatIndicesRequest): Promise<estypes.CatIndicesResponse> => this.client.cat.indices(params),
   };
 
   cluster = {