mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-12 23:15:18 +00:00
refactor: update
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user