log: add APM log to couch handler
continuous-integration/drone/tag Build is passing Details

pull/53/head devel_20.1.4
shancheas 2024-08-06 06:16:10 +07:00
parent e7abc7db13
commit 79d1c564ff
1 changed files with 2 additions and 0 deletions

View File

@ -8,6 +8,7 @@ import { FormulaType } from 'src/modules/transaction/sales-price-formula/constan
import { STATUS } from 'src/core/strings/constants/base.constants';
import { TransactionModel } from '../../../data/models/transaction.model';
import { mappingRevertTransaction } from '../managers/helpers/mapping-transaction.helper';
import { apm } from '../../../../../../core/apm';
@EventsHandler(ChangeDocEvent)
export class PosTransactionHandler implements IEventHandler<ChangeDocEvent> {
@ -77,6 +78,7 @@ export class PosTransactionHandler implements IEventHandler<ChangeDocEvent> {
await this.dataService.create(queryRunner, TransactionModel, data);
}
} catch (error) {
apm.captureError(error);
console.log('error handling pos transaction couch');
}
}