updates to wallet functionality

This commit is contained in:
Prince
2026-06-11 23:52:20 +02:00
parent 0dce7f51dc
commit 8a9d58fe05
13 changed files with 17 additions and 101 deletions

View File

@@ -253,8 +253,10 @@ public class GroupBatchService {
CompletableFuture<Object> future = workflowUtils
.waitForState(batch.getWorkflowId(), new String[]{"done", "failed"},
15000, 50);
future.get();
return getBatch(batchId, userId);
StateResponse response = (StateResponse) future.get();
String id = response.getBody().toString(); // this returns Batch Transaction ID
String cleaned = id.replaceAll("^\"|\"$", "");
return transactionService.findById(UUID.fromString(cleaned));
} catch (InterruptedException | ExecutionException e) {
throw new RuntimeException(e);
}