Skip to content

Commit 139c933

Browse files
authored
Add ? to the url and value to fetch values from env (#236)
* (fix):Add ? to the url and value to fetch values from env * Change the variable to store the url
1 parent 15ecbb5 commit 139c933

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

src/main/environment/common_example.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ grievanceAllocationRetryConfiguration=3
198198
logging.path=logs/
199199
logging.file.name=logs/common-api.log
200200

201-
video-call-url=https://vc.piramalswasthya.org/
201+
video-call-url=https://vc.piramalswasthya.org/?
202202
jibri.output.path=/srv/jibri/recordings
203203
video.recording.path=/srv/recordings
204204

src/main/java/com/iemr/common/service/videocall/VideoCallServiceImpl.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,20 +33,23 @@ public class VideoCallServiceImpl implements VideoCallService {
3333
@Autowired
3434
private VideoCallMapper videoCallMapper;
3535

36-
@Value("${video-call-url}")
3736
private String meetingLink;
3837

3938
private boolean isLinkSent = false;
4039
private String consultationStatus = "Not Initiated";
40+
41+
@Value("${video-call-url}")
4142
private String jitsiLink;
43+
4244
public VideoCallServiceImpl() {
4345
// this.jitsiLink = ConfigProperties.getPropertyByName("video-call-url");
4446
// logger.info("Jitsi Link fetched: " + this.jitsiLink);
4547
}
4648

4749
@Override
4850
public String generateMeetingLink() {
49-
meetingLink=jitsiLink+RandomStringUtils.randomAlphanumeric(8);
51+
logger.info("Jitsi Link: " + jitsiLink);
52+
meetingLink=jitsiLink+"m="+RandomStringUtils.randomAlphanumeric(8);
5053
logger.info("Meeting link: " + meetingLink);
5154
return meetingLink;
5255
}

0 commit comments

Comments
 (0)