feat: delete partial analysis responses in medipost after sync

This commit is contained in:
Karli
2025-09-30 15:52:50 +03:00
parent 2868875044
commit f477bfaa13

View File

@@ -435,6 +435,9 @@ export async function readPrivateMessageResponse({
medusaOrderId, medusaOrderId,
orderStatus: 'PARTIAL_ANALYSIS_RESPONSE', orderStatus: 'PARTIAL_ANALYSIS_RESPONSE',
}); });
if (IS_ENABLED_DELETE_PRIVATE_MESSAGE) {
await deletePrivateMessage(privateMessageId);
}
hasAnalysisResponse = true; hasAnalysisResponse = true;
hasPartialAnalysisResponse = true; hasPartialAnalysisResponse = true;
} else if (status.isCompleted) { } else if (status.isCompleted) {