File tree 2 files changed +13
-3
lines changed
2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,13 @@ import type {DescribeConsumerResult} from '../types/api/consumer';
13
13
import type { FeatureFlagConfigs } from '../types/api/featureFlags' ;
14
14
import type { HealthCheckAPIResponse } from '../types/api/healthcheck' ;
15
15
import type { JsonHotKeysResponse } from '../types/api/hotkeys' ;
16
- import type { MetaBaseClusterInfo , MetaCluster , MetaClusters , MetaTenants } from '../types/api/meta' ;
16
+ import type {
17
+ MetaBaseClusterInfo ,
18
+ MetaBaseClusters ,
19
+ MetaCluster ,
20
+ MetaClusters ,
21
+ MetaTenants ,
22
+ } from '../types/api/meta' ;
17
23
import type { ModifyDiskResponse } from '../types/api/modifyDisk' ;
18
24
import type { TNetInfo } from '../types/api/netInfo' ;
19
25
import type { TNodesInfo } from '../types/api/nodes' ;
@@ -843,13 +849,13 @@ export class YdbWebVersionAPI extends YdbEmbeddedAPI {
843
849
clusterName : string ,
844
850
{ concurrentId, signal} : AxiosOptions = { } ,
845
851
) : Promise < MetaBaseClusterInfo > {
846
- return this . get < MetaBaseClusterInfo [ ] > (
852
+ return this . get < MetaBaseClusters > (
847
853
`${ META_BACKEND || '' } /meta/db_clusters` ,
848
854
{
849
855
name : clusterName ,
850
856
} ,
851
857
{ concurrentId, requestConfig : { signal} } ,
852
- ) . then ( ( data ) => data [ 0 ] ) ;
858
+ ) . then ( ( data ) => data . clusters [ 0 ] ) ;
853
859
}
854
860
}
855
861
Original file line number Diff line number Diff line change @@ -22,6 +22,10 @@ export interface MetaExtendedClusterInfo extends MetaGeneralClusterInfo {
22
22
versions ?: MetaClusterVersion [ ] ;
23
23
}
24
24
25
+ export interface MetaBaseClusters {
26
+ clusters : MetaBaseClusterInfo [ ] ;
27
+ }
28
+
25
29
export interface MetaBaseClusterInfo {
26
30
owner ?: string ;
27
31
location ?: string ;
You can’t perform that action at this time.
0 commit comments