fix: enable gift-card creation without order_id

This commit is contained in:
Sebastian Rindom committed 2021-03-08 13:58:01 +01:00
1 parent 6a3409d239
commit 9ce935a779
2 files changed
+4 -7

No files matched your search

@@ -108,13 +108,6 @@ class GiftCardService extends BaseService {
)
}
if (!giftCard.order_id) {
throw new MedusaError(
MedusaError.Types.NOT_FOUND,
`Gift card is missing order_id`
)
}
// Will throw if region does not exist
const region = await this.regionService_.retrieve(giftCard.region_id)