Fix custom domain not showing up in UI
This commit is contained in:
parent
e9f746cd8b
commit
f318a95641
@ -444,7 +444,7 @@ export class Registry {
|
|||||||
/**
|
/**
|
||||||
* Fetch deployment DNS record by Id
|
* Fetch deployment DNS record by Id
|
||||||
*/
|
*/
|
||||||
async getDNSRecordById(id: string): Promise<DNSRecord> {
|
async getDNSRecordById(id: string): Promise<DNSRecord[]> {
|
||||||
return this.registry.getRecordsByIds([id]);
|
return this.registry.getRecordsByIds([id]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -201,7 +201,7 @@ export class Service {
|
|||||||
log(`Project ${deployment.projectId} not found`);
|
log(`Project ${deployment.projectId} not found`);
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
const dnsRecord = await this.laconicRegistry.getDNSRecordById(record.attributes.dns);
|
const dnsRecord = (await this.laconicRegistry.getDNSRecordById(record.attributes.dns))[0];
|
||||||
|
|
||||||
const dnsRecordData: DNSRecordAttributes = {
|
const dnsRecordData: DNSRecordAttributes = {
|
||||||
name: dnsRecord.attributes.name,
|
name: dnsRecord.attributes.name,
|
||||||
@ -713,6 +713,7 @@ export class Service {
|
|||||||
await this.db.updateDeploymentById(dnsDeployment.id, {
|
await this.db.updateDeploymentById(dnsDeployment.id, {
|
||||||
applicationDeploymentRequestId,
|
applicationDeploymentRequestId,
|
||||||
applicationDeploymentRequestData,
|
applicationDeploymentRequestData,
|
||||||
|
domainId: domain?.id ?? null
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -116,6 +116,8 @@ const OverviewTabPanel = () => {
|
|||||||
return () => clearInterval(timerId);
|
return () => clearInterval(timerId);
|
||||||
}, [onUpdate]);
|
}, [onUpdate]);
|
||||||
|
|
||||||
|
console.log(project.deployments)
|
||||||
|
|
||||||
// useEffect(() => {
|
// useEffect(() => {
|
||||||
// const fetchLiveProdDomain = async () => {
|
// const fetchLiveProdDomain = async () => {
|
||||||
// const { domains } = await client.getDomains(project.id, {
|
// const { domains } = await client.getDomains(project.id, {
|
||||||
|
Loading…
Reference in New Issue
Block a user