mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
refactor: use organization context for server creation
This commit is contained in:
parent
b02195db17
commit
c52725420e
@ -50,7 +50,10 @@ export const serverRouter = createTRPCRouter({
|
||||
message: "You cannot create more servers",
|
||||
});
|
||||
}
|
||||
const project = await createServer(input, ctx.user.ownerId);
|
||||
const project = await createServer(
|
||||
input,
|
||||
ctx.session.activeOrganizationId,
|
||||
);
|
||||
return project;
|
||||
} catch (error) {
|
||||
throw new TRPCError({
|
||||
|
Loading…
Reference in New Issue
Block a user