Skip to content

Commit

Permalink
close context
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobasco99 committed Jun 21, 2024
1 parent 6f0006a commit 2d0ef88
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2156,6 +2156,7 @@ public Response surveyDone(String surveyDoneString){
interactiveElements.add(button);
response.put("interactiveElements", interactiveElements);
response.put("channel", channel);
response.put("closeContext", true);
response.put("message", surveyDoneString); //+ currParticipant.getEmail() + currParticipant.getUnaskedQuestions() + currParticipant.getSkippedQuestions()
Context.get().monitorEvent(MonitoringEvent.RESPONSE_SENDING.toString());
return Response.ok().entity(response).build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1479,6 +1479,7 @@ public Response nextQuestion(@FormDataParam("msg") String msg, @FormDataParam("c
response.put("message", completedSurvey);
response.put("interactiveElements", interactiveElements);
response.put("channel", channel);
response.put("closeContext", true);
Context.get().monitorEvent(MonitoringEvent.RESPONSE_SENDING.toString());
return Response.ok().entity(response).build();
} else {
Expand All @@ -1502,6 +1503,7 @@ public Response nextQuestion(@FormDataParam("msg") String msg, @FormDataParam("c
}
response.put("message", "Something went wrong in Next Question try block.");
response.put("channel", channel);
response.put("closeContext", true);
return Response.ok().entity(response).build();
}

Expand Down

0 comments on commit 2d0ef88

Please sign in to comment.