pr review fixes

This commit is contained in:
olivermrbl
2021-03-17 10:32:11 +01:00
parent fa2c6f9beb
commit 8fc6b26cb8
5 changed files with 16 additions and 8 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ class OrderSubscriber {
await Promise.all(
order.discounts.map(async d => {
const usageCount = d?.usage_count || 0
const usageCount = d.rule?.usage_count || 0
return this.discountService_.update(d.id, {
rule: {
...d.rule,