Skip to content

Commit

Permalink
Cbrelease 4.8.0 (#39) (#40)
Browse files Browse the repository at this point in the history
* changed logic to update batch lookup table

Co-authored-by: vikrantbipin <118338417+vikrantbipin@users.noreply.github.com>
  • Loading branch information
karthik-tarento and vikrantbipin authored May 17, 2023
1 parent 5c23fa6 commit 8340454
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,7 @@ public Response updateBatchLookupRecord(RequestContext requestContext, String ba
primaryKey.put(JsonKey.USER_ID, userId);
primaryKey.put(JsonKey.ENROLLED_DATE, map.get("enrolled_date"));
Map<String, Object> attributeMap = new HashMap<>();
attributeMap.putAll(activeStatus);
attributeMap.remove(JsonKey.BATCH_ID);
attributeMap.put(JsonKey.ACTIVE, activeStatus.get(JsonKey.ACTIVE));
attributeMap = CassandraUtil.changeCassandraColumnMapping(attributeMap);
return cassandraOperation.updateRecord(
requestContext, KEYSPACE_NAME, ENROLLMENT_BATCH, attributeMap, primaryKey);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ class CourseEnrolmentActor @Inject()(@Named("course-batch-notification-actor") c
// code for find root cause of null value in prod(16-02-2023)
try {
val activeStatus = dataMap.get(JsonKey.ACTIVE);
logger.info(requestContext, "upsertEnrollment :: IsNew :: " + isNew + " ActiveStatus :: " + activeStatus + " DataMap is :: " + dataMap)
logger.info(requestContext, "upsertEnrollment :: IsNew :: " + isNew + " ActiveStatus :: " + activeStatus + " DataMap is :: " + dataMap+ " DataBatchMap:: "+ dataBatchMap)
if (activeStatus == null) {
throw new Exception("Active Value is null in upsertEnrollment");
}
Expand Down

0 comments on commit 8340454

Please sign in to comment.