[autofix.ci] apply automated fixes

This commit is contained in:
autofix-ci[bot]
2025-09-02 04:42:24 +00:00
committed by GitHub
parent 883c3f9739
commit cb992259cf
36 changed files with 812 additions and 485 deletions

View File

@@ -86,7 +86,6 @@ export const createApplication = async (
.returning()
.then((value) => value[0]);
if (!newApplication) {
throw new TRPCError({
code: "BAD_REQUEST",

View File

@@ -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({

View File

@@ -49,8 +49,6 @@ export const findPreviewDeploymentById = async (
return application;
};
export const removePreviewDeployment = async (previewDeploymentId: string) => {
try {
const previewDeployment =

View File

@@ -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) => {