Commit aca9027e authored by Pradyumna Nagendra's avatar Pradyumna Nagendra
Browse files

Issue #devcon fix: School API fix

No related merge requests found
Showing with 3 additions and 3 deletions
+3 -3
......@@ -54,7 +54,7 @@ class TeacherController @Inject()(@Named(ActorNames.SCHOOL_ACTOR) schoolActor: A
val body = requestBody()
val content = body.getOrElse("teacher", new java.util.HashMap()).asInstanceOf[java.util.Map[String, Object]]
content.putAll(headers)
content.putAll(Map("sessionId" -> identifier))
content.putAll(Map("userId" -> identifier))
val contentRequest = getRequest(content, headers, "getUserData")
setRequestContext(contentRequest, version, objectType, schemaName)
getResult("api.teacher.profile", schoolActor, contentRequest)
......
......@@ -65,7 +65,7 @@ public class SchoolActor extends BaseActor {
String objectType = (String) request.getContext().get("objectType");
String sessionid = "";
if(StringUtils.equalsIgnoreCase("Teacher", objectType)) {
sessionid = "teacher_" + request.get("sessionId");
sessionid = "teacher_" + request.get("userId");
} else {
sessionid = "attendance_" + request.get("sessionId");
}
......@@ -84,7 +84,7 @@ public class SchoolActor extends BaseActor {
String objectType = (String) request.getContext().get("objectType");
String sessionid = "";
if(StringUtils.equalsIgnoreCase("Teacher", objectType)) {
sessionid = "teacher_" + request.get("sessionId");
sessionid = "teacher_" + request.get("userId");
} else {
sessionid = "attendance_" + request.get("sessionId");
}
......
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