- fix product price auto update getting from calback in metro
- revert logs in ppob callback metro
This commit is contained in:
@@ -1204,14 +1204,6 @@ export class TransactionService {
|
||||
relations: ['product_price'],
|
||||
});
|
||||
|
||||
console.log(dataTransaction.product_price, 'productPrice')
|
||||
|
||||
const dataProductPrice = await this.productPriceRepository.findOne({
|
||||
where: {
|
||||
id: dataTransaction.product_price,
|
||||
}
|
||||
});
|
||||
|
||||
// const dataMsg = callback.msg;
|
||||
// const failedReason = dataMsg.split('.');
|
||||
|
||||
@@ -1239,7 +1231,7 @@ export class TransactionService {
|
||||
if (callback['message'].includes('METRO')) {
|
||||
if (callback['price'] != dataTransaction.product_price.price) {
|
||||
console.log("mskupdt", "msk")
|
||||
dataProductPrice.price = callback['price']
|
||||
dataTransaction.product_price.price = callback['price'].toInt()
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1338,7 +1330,7 @@ export class TransactionService {
|
||||
if(callback['message']) {
|
||||
if (callback['message'].includes('METRO')) {
|
||||
if (callback['price'] != dataTransaction.product_price.price) {
|
||||
dataTransaction.product_price.price = callback['price']
|
||||
dataTransaction.product_price.price = callback['price'].toInt()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user