Update query to get latest DNS record
This commit is contained in:
parent
b6084008b8
commit
fd38127cb5
@ -653,7 +653,6 @@ export class Database {
|
|||||||
id: projectId,
|
id: projectId,
|
||||||
},
|
},
|
||||||
status: DeploymentStatus.Ready,
|
status: DeploymentStatus.Ready,
|
||||||
isDNS: true
|
|
||||||
},
|
},
|
||||||
order: {
|
order: {
|
||||||
createdAt: 'DESC'
|
createdAt: 'DESC'
|
||||||
@ -661,7 +660,7 @@ export class Database {
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (deployment === null) {
|
if (deployment === null) {
|
||||||
throw new Error(`DNS deployment not found for project ${projectId}`);
|
throw new Error(`No deployment found for project ${projectId}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
return deployment.dnsRecordData;
|
return deployment.dnsRecordData;
|
||||||
|
Loading…
Reference in New Issue
Block a user