Skip to content

Commit

Permalink
Merge branch 'main' into websocket-pdf
Browse files Browse the repository at this point in the history
  • Loading branch information
3milyfz authored Dec 2, 2023
2 parents 5d5d04f + 2d2991a commit e39b063
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/end-session-component/EndSession.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {

function EndSession() {
const emailRef = useRef();
const sessionCode = sessionStorage.getItem("sessionCode");
const sessionId = sessionStorage.getItem("sessionId");
const [success, setSuccess] = useState(false);
const [error, setError] = useState(false);
const [open, setOpen] = useState(true);
Expand All @@ -28,8 +28,8 @@ function EndSession() {
const templateId = "template_feo851p";

// TODO: change to azure endpoint
let transcriptUrl = 'http://localhost:8080/email/transcript/' + sessionCode
let dateUrl = 'http://localhost:8080/email/date/' + sessionCode
let transcriptUrl = 'http://localhost:8080/email/transcript/' + sessionId
let dateUrl = 'http://localhost:8080/email/date/' + sessionId

try {
const response = await axios.get(transcriptUrl);
Expand Down

0 comments on commit e39b063

Please sign in to comment.