chore: add notif service for new criticisms ticket and subscribtion
This commit is contained in:
@@ -196,9 +196,11 @@ export class SubscriptionsService {
|
||||
|
||||
async subscribeToPlan(serviceId: string, subscribeDto: SubscribeServiceDto, userId: string) {
|
||||
const queryRunner = this.dataSource.createQueryRunner();
|
||||
await queryRunner.connect();
|
||||
await queryRunner.startTransaction();
|
||||
|
||||
try {
|
||||
await queryRunner.connect();
|
||||
await queryRunner.startTransaction();
|
||||
|
||||
const user = await this.usersService.findOneByIdWithQueryRunner(userId, queryRunner);
|
||||
|
||||
const plan = await queryRunner.manager.findOne(SubscriptionPlan, {
|
||||
|
||||
Reference in New Issue
Block a user