Skip to content

Commit 2fa781a

Browse files
committed
fix: Wait forever for the cluster to create or modify
https://harperdb.atlassian.net/browse/STUDIO-553
1 parent ffc776a commit 2fa781a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/features/clusters/hooks/useCreateNewCluster.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ async function onNewClusterSubmit(
88
const { data } = await apiClient.post(
99
'/Cluster/',
1010
clusterInfo,
11-
{ timeout: 120_000 },
11+
{ timeout: 0 },
1212
);
1313
return data;
1414
}

src/features/clusters/hooks/useUpdateCluster.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ async function onEditClusterSubmit(
88
const { data } = await apiClient.put(
99
`/Cluster/${clusterInfo.id}` as '/Cluster/{id}',
1010
{ regionPlans: clusterInfo.regionPlans },
11-
{ timeout: 120_000 },
11+
{ timeout: 0 },
1212
);
1313
return data;
1414
}

0 commit comments

Comments
 (0)