forked from cerc-io/snowballtools-base
Fix custom domain not showing up in UI
This commit is contained in:
committed by
IshaVenikar
parent
e9f746cd8b
commit
f318a95641
@@ -444,7 +444,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]);
|
||||
}
|
||||
|
||||
|
||||
@@ -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,
|
||||
@@ -713,6 +713,7 @@ export class Service {
|
||||
await this.db.updateDeploymentById(dnsDeployment.id, {
|
||||
applicationDeploymentRequestId,
|
||||
applicationDeploymentRequestData,
|
||||
domainId: domain?.id ?? null
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user