mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-07-05 14:05:30 +02:00
[autofix.ci] apply automated fixes
This commit is contained in:
@@ -86,7 +86,6 @@ export const createApplication = async (
|
||||
.returning()
|
||||
.then((value) => value[0]);
|
||||
|
||||
|
||||
if (!newApplication) {
|
||||
throw new TRPCError({
|
||||
code: "BAD_REQUEST",
|
||||
|
||||
@@ -62,7 +62,6 @@ export const findEnvironmentsByProjectId = async (projectId: string) => {
|
||||
};
|
||||
|
||||
export const deleteEnvironment = async (environmentId: string) => {
|
||||
|
||||
const currentEnvironment = await findEnvironmentById(environmentId);
|
||||
if (currentEnvironment.name === "production") {
|
||||
throw new TRPCError({
|
||||
|
||||
@@ -49,8 +49,6 @@ export const findPreviewDeploymentById = async (
|
||||
return application;
|
||||
};
|
||||
|
||||
|
||||
|
||||
export const removePreviewDeployment = async (previewDeploymentId: string) => {
|
||||
try {
|
||||
const previewDeployment =
|
||||
|
||||
@@ -36,13 +36,13 @@ export const createProject = async (
|
||||
}
|
||||
|
||||
// Automatically create a production environment
|
||||
const newEnvironment = await createProductionEnvironment(newProject.projectId);
|
||||
return {
|
||||
project: newProject,
|
||||
environment: newEnvironment,
|
||||
};
|
||||
|
||||
|
||||
const newEnvironment = await createProductionEnvironment(
|
||||
newProject.projectId,
|
||||
);
|
||||
return {
|
||||
project: newProject,
|
||||
environment: newEnvironment,
|
||||
};
|
||||
};
|
||||
|
||||
export const findProjectById = async (projectId: string) => {
|
||||
|
||||
Reference in New Issue
Block a user