Skip to content
This repository has been archived by the owner on Jun 30, 2024. It is now read-only.

Commit

Permalink
Fix: log stop_question if vote2 is skipped
Browse files Browse the repository at this point in the history
  • Loading branch information
bnmnetp committed Nov 4, 2022
1 parent 648bb75 commit daf0257
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions static/js/peer.js
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,15 @@ function enableNext() {
broadcast: true,
course_name: eBookConfig.course,
};
if (typeof voteNum !== "undefined" && voteNum < 2) {
logPeerEvent({
sid: eBookConfig.username,
div_id: currentQuestion,
event: "peer",
act: "stop_question",
course: eBookConfig.course,
});
}
publishMessage(mess);
return true;
}
Expand Down

0 comments on commit daf0257

Please sign in to comment.