fix: dont create 0% discounts
This commit is contained in:
parent
65ea800a4c
commit
718b278658
@ -162,7 +162,7 @@ func (s *PromoCodeService) ActivatePromo(ctx context.Context, req *models.Activa
|
||||
}
|
||||
}
|
||||
|
||||
if promoCode.Bonus.Discount.Factor != 0 {
|
||||
if promoCode.Bonus.Discount.Factor != 0 && promoCode.Bonus.Discount.Factor != 1 {
|
||||
disOverHelm := true
|
||||
emptyString := ""
|
||||
zero := uint64(0)
|
||||
|
Loading…
Reference in New Issue
Block a user