diff --git a/src/main/java/it/gov/pagopa/wispconverter/service/RecoveryService.java b/src/main/java/it/gov/pagopa/wispconverter/service/RecoveryService.java index 41a40a0c..b8d7ecf5 100644 --- a/src/main/java/it/gov/pagopa/wispconverter/service/RecoveryService.java +++ b/src/main/java/it/gov/pagopa/wispconverter/service/RecoveryService.java @@ -241,13 +241,13 @@ public RecoveryProxyReceiptResponse recoverReceiptToBeSentByProxy(RecoveryProxyR String compositedIdForReceipt = String.format("%s_%s", rtRequestEntity.getPartitionKey(), rtRequestEntity.getId()); serviceBusService.sendMessage(compositedIdForReceipt, null); generateRE(null, "Success", InternalStepStatus.RT_SEND_RESCHEDULING_SUCCESS, null, null, null, null, sessionId); - response.getReceiptStatus().add(Pair.of(receiptId, "SUCCESS")); + response.getReceiptStatus().add(Pair.of(receiptId, "SCHEDULED")); } catch (Exception e) { log.error("Reconciliation for receipt id [{}] ended unsuccessfully!", receiptId, e); generateRE(Constants.PAA_INVIA_RT, "Failure", InternalStepStatus.RT_SEND_RESCHEDULING_FAILURE, null, null, null, null, sessionId); - response.getReceiptStatus().add(Pair.of(receiptId, String.format("FAILURE: [%s]", e.getMessage()))); + response.getReceiptStatus().add(Pair.of(receiptId, String.format("FAILED: [%s]", e.getMessage()))); } }