fix: create platform handler (#14288)

Co-authored-by: Keith Williams <keithwillcode@gmail.com>
This commit is contained in:
Lauris Skraucis
2024-04-05 07:46:29 +00:00
committed by GitHub
co-authored by Keith Williams
parent e3562cdfb5
commit a597defd03
2 changed files with 3 additions and 0 deletions
@@ -25,6 +25,7 @@ export class OrganizationRepository {
autoAcceptEmail: string;
seats: number | null;
pricePerSeat: number | null;
isPlatform: boolean;
};
owner: {
id: number;
@@ -50,6 +51,7 @@ export class OrganizationRepository {
...(IS_TEAM_BILLING_ENABLED ? { requestedSlug: orgData.slug } : {}),
orgSeats: orgData.seats,
orgPricePerSeat: orgData.pricePerSeat,
isPlatform: orgData.isPlatform,
},
},
});
@@ -110,6 +110,7 @@ export const createHandler = async ({ input, ctx }: CreateOptions) => {
autoAcceptEmail,
seats: seats ?? null,
pricePerSeat: pricePerSeat ?? null,
isPlatform,
},
owner: {
id: orgOwner.id,