Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: create platform handler isPlatform flag #14288

Merged
merged 9 commits into from
Apr 5, 2024
2 changes: 2 additions & 0 deletions packages/lib/server/repository/organization.ts
Expand Up @@ -25,6 +25,7 @@ export class OrganizationRepository {
autoAcceptEmail: string;
seats: number | null;
pricePerSeat: number | null;
isPlatform: boolean;
};
owner: {
id: number;
Expand All @@ -50,6 +51,7 @@ export class OrganizationRepository {
...(IS_TEAM_BILLING_ENABLED ? { requestedSlug: orgData.slug } : {}),
orgSeats: orgData.seats,
orgPricePerSeat: orgData.pricePerSeat,
isPlatform: orgData.isPlatform,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@zomars Why was this moved to metadata here? There is a standalone column isPlatform on the team table that the platform team has intended to use.

},
},
});
Expand Down
Expand Up @@ -110,6 +110,7 @@ export const createHandler = async ({ input, ctx }: CreateOptions) => {
autoAcceptEmail,
seats: seats ?? null,
pricePerSeat: pricePerSeat ?? null,
isPlatform,
},
owner: {
id: orgOwner.id,
Expand Down