[WIP] Handle multiple domains in records in status API #26

Draft
prathamesh wants to merge 1 commits from deep-stack/webapp-deployment-status-api:pm-handle-multiple-dns into main

View File

@ -159,7 +159,9 @@ export class RegHelper {
}
status.app = r.attributes.application;
const hostname = r.attributes.dns ?? generateHostnameForApp(app);
const dnsList: string[] = r.attributes.dns ? r.attributes.dns.split(",") : [];
const hostname = dnsList.length ? dnsList[dnsList.length - 1] : generateHostnameForApp(app);
if (deploymentsByRequest.has(r.id)) {
const deployment = deploymentsByRequest.get(r.id);