Refactoring - Version stable

This commit is contained in:
dahoud
2026-03-28 14:21:30 +00:00
parent 00b981c510
commit a740c172ef
4402 changed files with 88517 additions and 1555 deletions

View File

@@ -47,7 +47,8 @@ public class ApprovalResource {
try {
String transactionId = (String) request.get("transactionId");
String transactionType = (String) request.get("transactionType");
Double amount = ((Number) request.get("amount")).doubleValue();
Number rawAmount = (Number) request.get("amount");
Double amount = rawAmount != null ? rawAmount.doubleValue() : null;
String organizationIdStr = (String) request.get("organizationId");
if (transactionId == null || transactionType == null || amount == null) {