turn service must be rebuilt on dashboard domain change

restart only restarts the container and does not affect the env
variables.
This commit is contained in:
Girish Ramakrishnan
2020-09-23 15:14:06 -07:00
parent a75928d805
commit e422dd1198
3 changed files with 3 additions and 1 deletions

View File

@@ -347,7 +347,7 @@ function updateDashboardDomain(domain, auditSource, callback) {
setDashboardDomain(domain, auditSource, function (error) {
if (error) return callback(error);
addons.restartService('turn', NOOP_CALLBACK); // to update the realm variable
addons.rebuildService('turn', NOOP_CALLBACK); // to update the realm variable
callback(null);
});