fix(projects): automatically move to new project

This commit is contained in:
Bartosz Gotowski
2024-04-30 15:35:28 +02:00
parent be56ba046c
commit f8cb9f84f4
2 changed files with 14 additions and 9 deletions

View File

@@ -42,6 +42,8 @@ export const projectRouter = createTRPCRouter({
if (ctx.user.rol === "user") {
await addNewProject(ctx.user.authId, project.projectId);
}
return project;
} catch (error) {
console.log(error);
throw new TRPCError({