Skip to content

Commit

Permalink
Merge pull request #7 from chaitanyakole/Add_cohortid
Browse files Browse the repository at this point in the history
Get cohort id from the local storage and pass to api payload
  • Loading branch information
gouravmore authored Feb 18, 2025
2 parents 89b60d2 + 86b903a commit 1747fb4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/utils/VoiceAnalyser.js
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,8 @@ function VoiceAnalyser(props) {
const sessionId = getLocalData("sessionId");
const sub_session_id = getLocalData("sub_session_id");
const tenantId = getLocalData("tenantId");
const cohortId = getLocalData("cohortId");

const { originalText, contentType, contentId, currentLine } = props;
const responseStartTime = new Date().getTime();
let responseText = "";
Expand Down Expand Up @@ -288,6 +290,7 @@ function VoiceAnalyser(props) {
contentId,
contentType,
tenantId,
cohortId,
practice_duration: parseInt(loadToMicStartDuration.toFixed(0)),
read_duration: parseInt(micDuration.toFixed(0)),
}
Expand Down

0 comments on commit 1747fb4

Please sign in to comment.