fix: enable gift-card creation without order_id (#195)
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user