Fix custom domain not showing up in UI
All checks were successful
Lint / lint (20.x) (pull_request) Successful in 4m34s

This commit is contained in:
Shreerang Kale 2025-01-31 19:46:39 +05:30
parent ab989ed12d
commit 54af65fc8a
3 changed files with 5 additions and 2 deletions

View File

@ -433,7 +433,7 @@ export class Registry {
/**
* Fetch deployment DNS record by Id
*/
async getDNSRecordById(id: string): Promise<DNSRecord> {
async getDNSRecordById(id: string): Promise<DNSRecord[]> {
return this.registry.getRecordsByIds([id]);
}

View File

@ -201,7 +201,7 @@ export class Service {
log(`Project ${deployment.projectId} not found`);
return;
} else {
const dnsRecord = await this.laconicRegistry.getDNSRecordById(record.attributes.dns);
const dnsRecord = (await this.laconicRegistry.getDNSRecordById(record.attributes.dns))[0];
const dnsRecordData: DNSRecordAttributes = {
name: dnsRecord.attributes.name,
@ -709,6 +709,7 @@ export class Service {
await this.db.updateDeploymentById(dnsDeployment.id, {
applicationDeploymentRequestId,
applicationDeploymentRequestData,
domainId: domain?.id ?? null
});
}

View File

@ -116,6 +116,8 @@ const OverviewTabPanel = () => {
return () => clearInterval(timerId);
}, [onUpdate]);
console.log(project.deployments)
// useEffect(() => {
// const fetchLiveProdDomain = async () => {
// const { domains } = await client.getDomains(project.id, {