Fix proxy config not generated on restore

This commit is contained in:
Girish Ramakrishnan
2023-08-16 11:34:41 +05:30
parent e33ae8ae11
commit 1133a41b77
4 changed files with 18 additions and 16 deletions
+2 -2
View File
@@ -215,14 +215,14 @@ async function databaseSetup() {
await database.initialize();
await database._clear();
await appstore._setApiServerOrigin(exports.mockApiServerOrigin);
await dashboard.setLocation(exports.dashboardDomain);
await dashboard._setLocation(exports.dashboardDomain);
}
async function domainSetup() {
nock.cleanAll();
await databaseSetup();
await mailServer.initLocation(domain.domain, `${constants.DASHBOARD_SUBDOMAIN}.${domain.domain}`); // default mail location. do this before we add the domain for upserting mail DNS
await mailServer.setLocation(domain.domain, `${constants.DASHBOARD_SUBDOMAIN}.${domain.domain}`); // default mail location. do this before we add the domain for upserting mail DNS
await domains.add(domain.domain, domain, auditSource);
}