feat(MED-85): update dispatch order to medipost retry
This commit is contained in:
@@ -709,11 +709,12 @@ export async function sendOrderToMedipost({
|
||||
try {
|
||||
await sendPrivateMessage(orderXml);
|
||||
} catch (e) {
|
||||
const isMedipostError = e instanceof MedipostValidationError;
|
||||
await logMedipostDispatch({
|
||||
medusaOrderId,
|
||||
isSuccess: false,
|
||||
isMedipostError: e instanceof MedipostValidationError,
|
||||
errorMessage: e instanceof MedipostValidationError ? e.response : undefined,
|
||||
isMedipostError,
|
||||
errorMessage: isMedipostError ? e.response : undefined,
|
||||
});
|
||||
throw e;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user