fix: enable gift-card creation without order_id (#195)

This commit is contained in:
Sebastian Rindom
2021-03-08 15:31:39 +01:00
committed by GitHub
parent 6a3409d239
commit 1263d24ca3
2 changed files with 4 additions and 7 deletions
@@ -381,6 +381,10 @@ class SendGridService extends NotificationService {
relations: ["region", "order"],
})
if (!giftCard.order) {
return
}
const taxRate = giftCard.region.tax_rate / 100
return {