Economic plugin

This commit is contained in:
olivermrbl committed 2020-07-11 15:13:01 +02:00
1 parent 2e54c5627b
commit 12ee10a3d4
4 files changed
+69 -35

No files matched your search

+1 -2
View File
@@ -230,7 +230,6 @@ class OrderService extends BaseService {
return this.retrieve(order._id)
})
.catch(error => {
console.log(error)
throw error
})
})
@@ -287,7 +286,7 @@ class OrderService extends BaseService {
// If payment status is not authorized, we throw
if (paymentStatus !== "authorized") {
throw new MedusaError(
MedusaError.types.INVALID_ARGUMENT,
MedusaError.Types.INVALID_ARGUMENT,
"Payment method is not authorized"
)
}