From e32a7c2eafdfef7a60b8eec243d50b4b98dd5251 Mon Sep 17 00:00:00 2001 From: Aswin Ashar Abdullah Date: Fri, 26 Jul 2024 11:41:18 +0700 Subject: [PATCH] fix(base) delete query transaction --- src/core/modules/domain/usecase/base.manager.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/core/modules/domain/usecase/base.manager.ts b/src/core/modules/domain/usecase/base.manager.ts index 73b77a0..9900f13 100644 --- a/src/core/modules/domain/usecase/base.manager.ts +++ b/src/core/modules/domain/usecase/base.manager.ts @@ -60,7 +60,7 @@ export abstract class BaseManager { try { this.setUser(); - this.queryRunner.startTransaction(); + // this.queryRunner.startTransaction(); this.baseLog.verbose('prepareData'); await this.prepareData(); @@ -80,10 +80,10 @@ export abstract class BaseManager { this.baseLog.verbose('afterProcess'); await this.afterProcess(); - this.baseLog.verbose('commitTransaction'); - await this.queryRunner.commitTransaction(); + // this.baseLog.verbose('commitTransaction'); + // await this.queryRunner.commitTransaction(); - await this.queryRunner.release(); + // await this.queryRunner.release(); } catch (e) { if (e.response) throw new Error(JSON.stringify(e.response)); else throw new Error(e.message);