fix: update validation for billing check endpoint (#23842)

This commit is contained in:
Rajiv Sahal
2025-09-15 11:57:58 +00:00
committed by GitHub
parent 88391c7942
commit fcfb8cc9a3
@@ -21,7 +21,7 @@ import {
HttpStatus,
Logger,
Delete,
BadRequestException,
ParseIntPipe,
} from "@nestjs/common";
import { ConfigService } from "@nestjs/config";
import { ApiExcludeController } from "@nestjs/swagger";
@@ -51,7 +51,7 @@ export class BillingController {
@UseGuards(NextAuthGuard, OrganizationRolesGuard)
@MembershipRoles(["OWNER", "ADMIN", "MEMBER"])
async checkTeamBilling(
@Param("teamId") teamId: number
@Param("teamId", ParseIntPipe) teamId: number
): Promise<ApiResponse<CheckPlatformBillingResponseDto>> {
const { status, plan } = await this.billingService.getBillingData(teamId);