fix : free plan

This commit is contained in:
morteza-mortezai
2025-11-13 11:00:31 +03:30
parent 88349e3b7d
commit f3ddddc442
2 changed files with 1 additions and 2 deletions
@@ -52,5 +52,4 @@ export class ExtendUSerSubscribeServiceDto {
@IsUUID(4, { message: SubscriptionMessage.SERVICE_MUST_BE_UUID }) @IsUUID(4, { message: SubscriptionMessage.SERVICE_MUST_BE_UUID })
@ApiProperty({ description: "The service id ", example: "f7b3b3b3-7b3b-4b3b-8b3b-3b3b3b3b3b3b" }) @ApiProperty({ description: "The service id ", example: "f7b3b3b3-7b3b-4b3b-8b3b-3b3b3b3b3b3b" })
serviceId: string; serviceId: string;
} }
@@ -305,7 +305,7 @@ export class SubscriptionsService {
async extendSubscribeToPlan(userSubscriptionId: string, dto: ExtendUSerSubscribeServiceDto, userId: string) { async extendSubscribeToPlan(userSubscriptionId: string, dto: ExtendUSerSubscribeServiceDto, userId: string) {
const queryRunner = this.dataSource.createQueryRunner(); const queryRunner = this.dataSource.createQueryRunner();
let isFree = false; const isFree = false;
try { try {
await queryRunner.connect(); await queryRunner.connect();
await queryRunner.startTransaction(); await queryRunner.startTransaction();