From 9f8bd8bd48facfdaee95a6b993e10d1fa5aabb9a Mon Sep 17 00:00:00 2001 From: murtaza98 Date: Tue, 16 Nov 2021 21:33:07 +0530 Subject: [PATCH] Update invalid-livechat-config issue --- app/livechat/server/api/v1/videoCall.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/livechat/server/api/v1/videoCall.js b/app/livechat/server/api/v1/videoCall.js index 4d524337d94bc..6aef0c49537e2 100644 --- a/app/livechat/server/api/v1/videoCall.js +++ b/app/livechat/server/api/v1/videoCall.js @@ -4,7 +4,7 @@ import { Random } from 'meteor/random'; import { TAPi18n } from 'meteor/rocketchat:tap-i18n'; import { Messages, Rooms } from '../../../../models'; -import { settings as rcSettings } from '../../../../settings'; +import { settings as rcSettings } from '../../../../settings/server'; import { API } from '../../../../api/server'; import { findGuest, getRoom, settings } from '../lib/livechat'; import { OmnichannelSourceType } from '../../../../../definition/IRoom'; @@ -92,7 +92,7 @@ API.v1.addRoute('livechat/webrtc.call', { authRequired: true }, { throw new Meteor.Error('webRTC calling not enabled'); } - const config = settings(); + const config = Promise.await(settings()); if (!config.theme || !config.theme.actionLinks || !config.theme.actionLinks.webrtc) { throw new Meteor.Error('invalid-livechat-config'); }