Skip to content

Commit

Permalink
[PAGOPA-2177] fix: renamed recovery status
Browse files Browse the repository at this point in the history
  • Loading branch information
andrea-deri committed Sep 23, 2024
1 parent 1bf148a commit e998edb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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())));
}
}

Expand Down

0 comments on commit e998edb

Please sign in to comment.