refactor: update

This commit is contained in:
Mauricio Siu
2025-02-15 23:24:45 -06:00
parent ed62b4e1a3
commit 4a1a14aeb4
22 changed files with 119 additions and 120 deletions
+4 -1
View File
@@ -49,7 +49,10 @@ export const projectRouter = createTRPCRouter({
});
}
const project = await createProject(input, ctx.user.ownerId);
const project = await createProject(
input,
ctx.session.activeOrganizationId,
);
if (ctx.user.rol === "member") {
await addNewProject(ctx.user.id, project.projectId);
}