fix: enable gift-card creation without order_id (#195)
This commit is contained in:
@@ -381,6 +381,10 @@ class SendGridService extends NotificationService {
|
||||
relations: ["region", "order"],
|
||||
})
|
||||
|
||||
if (!giftCard.order) {
|
||||
return
|
||||
}
|
||||
|
||||
const taxRate = giftCard.region.tax_rate / 100
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user