Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ajinkyapandetekdi committed Aug 28, 2023
1 parent e1f3168 commit 6b4a98f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/AudioRecorderTamil/AudioRecorderTamil.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ function Mic({

if (process.env.REACT_APP_CAPTURE_AUDIO === 'true') {
let getContentId = parseInt(localStorage.getItem('content_random_id')) + 1;
var audioFileName = `${process.env.REACT_APP_CHANNEL}/${localStorage.getItem('contentSessionId')===null? localStorage.getItem('contentSessionIdAll'):localStorage.getItem('contentSessionId')}-${Date.now()}-${getContentId}.wav`;
var audioFileName = `${process.env.REACT_APP_CHANNEL}/${localStorage.getItem('contentSessionId')===null? localStorage.getItem('allAppContentSessionId'):localStorage.getItem('contentSessionId')}-${Date.now()}-${getContentId}.wav`;

const command = new PutObjectCommand({
Bucket: process.env.REACT_APP_AWS_s3_BUCKET_NAME,
Expand Down
2 changes: 1 addition & 1 deletion src/components/VoiceCompair/VoiceCompair.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ const VoiceCompair = props => {

if (process.env.REACT_APP_CAPTURE_AUDIO === 'true') {
let getContentId = parseInt(localStorage.getItem('content_random_id')) + 1;
var audioFileName = `${process.env.REACT_APP_CHANNEL}/${localStorage.getItem('contentSessionId')===null? localStorage.getItem('contentSessionIdAll'):localStorage.getItem('contentSessionId')}-${Date.now()}-${getContentId}.wav`;
var audioFileName = `${process.env.REACT_APP_CHANNEL}/${localStorage.getItem('contentSessionId')===null? localStorage.getItem('allAppContentSessionId'):localStorage.getItem('contentSessionId')}-${Date.now()}-${getContentId}.wav`;

const command = new PutObjectCommand({
Bucket: process.env.REACT_APP_AWS_s3_BUCKET_NAME,
Expand Down
2 changes: 1 addition & 1 deletion src/services/telementryService.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ if (localStorage.getItem('contentSessionId') !== null) {
contentSessionId = localStorage.getItem('contentSessionId');
} else {
contentSessionId = uniqueId();
localStorage.setItem('contentSessionIdAll', contentSessionId);
localStorage.setItem('allAppContentSessionId', contentSessionId);
}

let getUrl = window.location.href;
Expand Down

0 comments on commit 6b4a98f

Please sign in to comment.