Unverified Commit 9a314b8a authored by Mahesh Kumar Gangula's avatar Mahesh Kumar Gangula Committed by GitHub
Browse files

Merge pull request #302 from project-sunbird/removing-course-scheduler

changes for disabling course batch scheduler and course enrollment fix
No related merge requests found
Showing with 6 additions and 3 deletions
+6 -3
......@@ -59,7 +59,7 @@ public final class SchedulerManager {
scheduler = new StdSchedulerFactory().getScheduler();
}
String identifier = "NetOps-PC1502295457753";
scheduleCourseBatchCount(identifier);
// scheduleCourseBatchCount(identifier);
scheduleBulkUploadJob(identifier);
// scheduleCoursePublishJob(identifier);
scheduleMetricsReportJob(identifier);
......
......@@ -73,8 +73,11 @@ public class CourseEnrollmentActor extends BaseActor {
private void enrollCourseBatch(Request actorMessage) {
ProjectLogger.log("enrollCourseClass called");
Map<String, Object> courseMap = (Map<String, Object>) actorMessage.getRequest();
courseMap.remove(JsonKey.ID);
Map<String, Object> requestMap = (Map<String, Object>) actorMessage.getRequest();
Map<String, Object> courseMap = new HashMap<>();
courseMap.put(JsonKey.COURSE_ID, requestMap.get(JsonKey.COURSE_ID));
courseMap.put(JsonKey.BATCH_ID, requestMap.get(JsonKey.BATCH_ID));
courseMap.put(JsonKey.USER_ID, requestMap.get(JsonKey.USER_ID));
CourseBatch courseBatch =
courseBatchDao.readById(
(String) courseMap.get(JsonKey.COURSE_ID), (String) courseMap.get(JsonKey.BATCH_ID));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment