Merge branch 'hotfix/webshipper' into develop
This commit is contained in:
@@ -523,6 +523,11 @@ class WebshipperFulfillmentService extends FulfillmentService {
|
|||||||
.retrieve(data.id)
|
.retrieve(data.id)
|
||||||
.catch(() => undefined)
|
.catch(() => undefined)
|
||||||
|
|
||||||
|
// if order does not exist, we resolve gracefully
|
||||||
|
if (!order) {
|
||||||
|
return Promise.resolve()
|
||||||
|
}
|
||||||
|
|
||||||
if (order) {
|
if (order) {
|
||||||
if (order.data.attributes.status !== "pending") {
|
if (order.data.attributes.status !== "pending") {
|
||||||
if (order.data.attributes.status === "cancelled") {
|
if (order.data.attributes.status === "cancelled") {
|
||||||
|
|||||||
Reference in New Issue
Block a user