feat: ignore sync delete data from POS data #83
|
@ -61,11 +61,12 @@ export class PosTransactionHandler implements IEventHandler<ChangeDocEvent> {
|
|||
|
||||
// jika delete
|
||||
if (data._deleted ?? false) {
|
||||
await this.dataService.deleteById(
|
||||
queryRunner,
|
||||
TransactionModel,
|
||||
data._id,
|
||||
);
|
||||
// FIXME => This comment for ignore delete from POS data
|
||||
// await this.dataService.deleteById(
|
||||
// queryRunner,
|
||||
// TransactionModel,
|
||||
// data._id,
|
||||
// );
|
||||
}
|
||||
|
||||
// jika update // create
|
||||
|
|
Loading…
Reference in New Issue