delete console.log
gitea/salix/dev This commit looks good Details

This commit is contained in:
Bernat 2019-05-29 11:15:08 +02:00
parent 84a4b049f0
commit 85761043cd
1 changed files with 0 additions and 1 deletions

View File

@ -50,7 +50,6 @@ module.exports = Self => {
let buyerDiscount = await model.ComponentRate.findOne({where: {code: 'buyerDiscount'}}); let buyerDiscount = await model.ComponentRate.findOne({where: {code: 'buyerDiscount'}});
let usesMana = await model.WorkerMana.findOne({where: {workerFk: ticket.client().salesPersonFk}, fields: 'amount'}); let usesMana = await model.WorkerMana.findOne({where: {workerFk: ticket.client().salesPersonFk}, fields: 'amount'});
let componentId = buyerDiscount.id; let componentId = buyerDiscount.id;
console.log(usesMana);
if (usesMana) { if (usesMana) {
manaDiscount = await model.ComponentRate.findOne({where: {code: 'mana'}}); manaDiscount = await model.ComponentRate.findOne({where: {code: 'mana'}});
componentId = manaDiscount.id; componentId = manaDiscount.id;