Skip to content

Commit c14b17c

Browse files
committed
refactor: delete console.log
1 parent 3d2076a commit c14b17c

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Diff for: src/common/interceptor/transaction.interceptor.ts

-4
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import {
1111
concatMap,
1212
} from 'rxjs';
1313
import { QueryRunner, DataSource } from 'typeorm';
14-
// import { Request } from 'express';
1514

1615
@Injectable()
1716
export class TransactionInterceptor implements NestInterceptor {
@@ -28,16 +27,13 @@ export class TransactionInterceptor implements NestInterceptor {
2827
return next.handle().pipe(
2928
concatMap(async (data) => {
3029
await queryRunner.commitTransaction();
31-
console.log('data', data);
3230
return data;
3331
}),
3432
catchError(async (error) => {
35-
console.log('error', error);
3633
await queryRunner.rollbackTransaction();
3734
throw error;
3835
}),
3936
finalize(async () => {
40-
console.log('finalize');
4137
await queryRunner.release();
4238
}),
4339
);

0 commit comments

Comments
 (0)