Skip to content

Commit 89abb9d

Browse files
committed
Fix bugs from feedback
1 parent 5d6916d commit 89abb9d

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

backend/internal/access-list.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,11 +195,11 @@ const internalAccessList = {
195195
);
196196

197197
await internalAccessList.build(freshRow)
198-
if (Number.parseInt(row.proxy_host_count, 10)) {
199-
await internalNginx.bulkGenerateConfigs("proxy_host", row.proxy_hosts);
198+
if (Number.parseInt(freshRow.proxy_host_count, 10)) {
199+
await internalNginx.bulkGenerateConfigs("proxy_host", freshRow.proxy_hosts);
200200
}
201201
await internalNginx.reload();
202-
return internalAccessList.maskItems(row);
202+
return internalAccessList.maskItems(freshRow);
203203
},
204204

205205
/**

backend/internal/nginx.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -381,14 +381,14 @@ const internalNginx = {
381381
},
382382

383383
/**
384-
* @param {String} host_type
384+
* @param {String} hostType
385385
* @param {Array} hosts
386386
* @returns {Promise}
387387
*/
388-
bulkGenerateConfigs: (host_type, hosts) => {
388+
bulkGenerateConfigs: (hostType, hosts) => {
389389
const promises = [];
390390
hosts.map((host) => {
391-
promises.push(internalNginx.generateConfig(host_type, host));
391+
promises.push(internalNginx.generateConfig(hostType, host));
392392
return true;
393393
});
394394

frontend/src/pages/Settings/DefaultSite.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ export default function DefaultSite() {
172172
<span className="form-selectgroup-check" />
173173
</div>
174174
<div>
175-
<T id="settings.default-site.redirect" />
175+
<T id="settings.default-site.html" />
176176
</div>
177177
</div>
178178
</label>

0 commit comments

Comments
 (0)