Update method name to get record by Id
All checks were successful
Lint / lint (20.x) (pull_request) Successful in 4m40s
All checks were successful
Lint / lint (20.x) (pull_request) Successful in 4m40s
This commit is contained in:
parent
f318a95641
commit
a17386eb68
@ -442,9 +442,9 @@ export class Registry {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Fetch deployment DNS record by Id
|
* Fetch record by Id
|
||||||
*/
|
*/
|
||||||
async getDNSRecordById(id: string): Promise<DNSRecord[]> {
|
async getRecordById(id: string): Promise<any[]> {
|
||||||
return this.registry.getRecordsByIds([id]);
|
return this.registry.getRecordsByIds([id]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -22,6 +22,7 @@ import {
|
|||||||
AppDeploymentRemovalRecord,
|
AppDeploymentRemovalRecord,
|
||||||
AuctionParams,
|
AuctionParams,
|
||||||
DeployerRecord,
|
DeployerRecord,
|
||||||
|
DNSRecord,
|
||||||
DNSRecordAttributes,
|
DNSRecordAttributes,
|
||||||
EnvironmentVariables,
|
EnvironmentVariables,
|
||||||
GitPushEventPayload,
|
GitPushEventPayload,
|
||||||
@ -200,8 +201,9 @@ export class Service {
|
|||||||
if (!deployment.project) {
|
if (!deployment.project) {
|
||||||
log(`Project ${deployment.projectId} not found`);
|
log(`Project ${deployment.projectId} not found`);
|
||||||
return;
|
return;
|
||||||
} else {
|
}
|
||||||
const dnsRecord = (await this.laconicRegistry.getDNSRecordById(record.attributes.dns))[0];
|
|
||||||
|
const dnsRecord: DNSRecord = (await this.laconicRegistry.getRecordById(record.attributes.dns))[0];
|
||||||
|
|
||||||
const dnsRecordData: DNSRecordAttributes = {
|
const dnsRecordData: DNSRecordAttributes = {
|
||||||
name: dnsRecord.attributes.name,
|
name: dnsRecord.attributes.name,
|
||||||
@ -254,7 +256,6 @@ export class Service {
|
|||||||
log(
|
log(
|
||||||
`Updated deployment ${deployment.id} with URL ${record.attributes.url}`,
|
`Updated deployment ${deployment.id} with URL ${record.attributes.url}`,
|
||||||
);
|
);
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
await Promise.all(deploymentUpdatePromises);
|
await Promise.all(deploymentUpdatePromises);
|
||||||
|
Loading…
Reference in New Issue
Block a user