refactor: use organization context for server creation

This commit is contained in:
Mauricio Siu 2025-02-22 02:35:44 -06:00
parent b02195db17
commit c52725420e

View File

@ -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({