Merge branch 'canary' into 57-dokploy-api-or-cli

This commit is contained in:
Mauricio Siu
2024-06-12 00:23:53 -06:00
59 changed files with 763 additions and 448 deletions

View File

@@ -66,9 +66,10 @@ export const applicationRouter = createTRPCRouter({
if (ctx.user.rol === "user") {
await addNewService(ctx.user.authId, newApplication.applicationId);
}
return newApplication;
} catch (error) {
} catch (error: unknown) {
if (error instanceof TRPCError) {
throw error;
}
throw new TRPCError({
code: "BAD_REQUEST",
message: "Error to create the application",