Update reverse proxy app config on upstreamUri change

This commit is contained in:
Johannes Zellner
2022-06-08 11:50:27 +02:00
parent f854d86986
commit d55a6a5eec

View File

@@ -1448,7 +1448,10 @@ async function setUpstreamUri(app, upstreamUri, auditSource) {
let error = validateUpstreamUri(upstreamUri);
if (error) throw error;
await reverseProxy.writeAppConfig(_.extend({}, app, { upstreamUri }));
await update(appId, { upstreamUri });
await eventlog.add(eventlog.ACTION_APP_CONFIGURE, auditSource, { appId, app, upstreamUri });
}