Skip to content

Commit

Permalink
update credits for all courses
Browse files Browse the repository at this point in the history
  • Loading branch information
Yinnii committed Jun 26, 2024
1 parent 324695e commit 9fcafe7
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1692,11 +1692,11 @@ public Response getCreditsByUser(@QueryParam("email") String email, @QueryParam(
String user = service.getUuidByEmail(email);
JSONObject jsonBody = new JSONObject();
JSONParser p = new JSONParser(JSONParser.MODE_PERMISSIVE);
if(courseId != 6 && courseId != 2 && courseId != 11){
JSONObject error = new JSONObject();
error.put("chateMessage","Keine Credits für deinen Kurs :).");
return Response.ok().entity(error.toString()).build();
}
// if(courseId != 6 && courseId != 2 && courseId != 11){
// JSONObject error = new JSONObject();
// error.put("chateMessage","Keine Credits für deinen Kurs :).");
// return Response.ok().entity(error.toString()).build();
// }
try{
JSONObject acc = (JSONObject) p.parse(new String("{'account': { 'name': '" + user
+ "', 'homePage': '"+ service.xapiHomepage + "'}}"));
Expand Down

0 comments on commit 9fcafe7

Please sign in to comment.