refacto(#118): remove last toaster on start deployments

This commit is contained in:
Mauricio Siu
2024-06-06 00:11:46 -06:00
parent 0c197c095b
commit 7fb34ade00
7 changed files with 29 additions and 56 deletions

View File

@@ -50,17 +50,13 @@ export const DeployPostgres = ({ postgresId }: Props) => {
applicationStatus: "running",
})
.then(async () => {
toast.success("Database Deploying....");
toast.success("Deploying Database....");
await refetch();
await deploy({
postgresId,
})
.then(() => {
toast.success("Database Deployed Succesfully");
})
.catch(() => {
toast.error("Error to deploy Database");
});
}).catch(() => {
toast.error("Error to deploy Database");
});
await refetch();
})
.catch((e) => {