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

This commit is contained in:
Sebastian Rindom authored and GitHub committed 2021-03-08 15:31:39 +01:00
1 parent 6a3409d239
commit 1263d24ca3
2 files changed
+4 -7

No files matched your search

@@ -381,6 +381,10 @@ class SendGridService extends NotificationService {
relations: ["region", "order"],
})
if (!giftCard.order) {
return
}
const taxRate = giftCard.region.tax_rate / 100
return {