diff --git a/yugabyte-integration/src/main/java/com/ondc/yugabyte_integration/Controller/SessionDetailsController.java b/yugabyte-integration/src/main/java/com/ondc/yugabyte_integration/Controller/SessionDetailsController.java index f713068..8879862 100644 --- a/yugabyte-integration/src/main/java/com/ondc/yugabyte_integration/Controller/SessionDetailsController.java +++ b/yugabyte-integration/src/main/java/com/ondc/yugabyte_integration/Controller/SessionDetailsController.java @@ -43,6 +43,8 @@ public ResponseEntity getSessionById(@PathVariable String sessio public boolean checkSessionById(@PathVariable String sessionId) { return sessionDetailsService.checkSessionById(sessionId); } + + @Transactional @PostMapping("/payload") public ResponseEntity createPayload(@RequestBody Payload payload) { SessionDetails sessionDetails = sdRepository.findBySessionId(payload.getSessionDetails().getSessionId()) diff --git a/yugabyte-integration/src/main/java/com/ondc/yugabyte_integration/Entity/SessionDetails.java b/yugabyte-integration/src/main/java/com/ondc/yugabyte_integration/Entity/SessionDetails.java index a81f81c..579c7f5 100644 --- a/yugabyte-integration/src/main/java/com/ondc/yugabyte_integration/Entity/SessionDetails.java +++ b/yugabyte-integration/src/main/java/com/ondc/yugabyte_integration/Entity/SessionDetails.java @@ -33,7 +33,7 @@ public enum Type { } public enum Code { - METRO ("TRV:11"); + TRV11 ("METRO"); public final String domainCode; diff --git a/yugabyte-integration/target/classes/com/ondc/yugabyte_integration/Controller/SessionDetailsController.class b/yugabyte-integration/target/classes/com/ondc/yugabyte_integration/Controller/SessionDetailsController.class index 70ff878..cfc0350 100644 Binary files a/yugabyte-integration/target/classes/com/ondc/yugabyte_integration/Controller/SessionDetailsController.class and b/yugabyte-integration/target/classes/com/ondc/yugabyte_integration/Controller/SessionDetailsController.class differ diff --git a/yugabyte-integration/target/classes/com/ondc/yugabyte_integration/Service/SessionDetailsService.class b/yugabyte-integration/target/classes/com/ondc/yugabyte_integration/Service/SessionDetailsService.class index d8aa588..3988ee8 100644 Binary files a/yugabyte-integration/target/classes/com/ondc/yugabyte_integration/Service/SessionDetailsService.class and b/yugabyte-integration/target/classes/com/ondc/yugabyte_integration/Service/SessionDetailsService.class differ