Compare commits

..

1 Commits

Author SHA1 Message Date
07d7f02720 Handle multiple domains in records in status API 2025-02-06 16:32:10 +05:30

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);