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,
|
||||
},
|
||||
status: DeploymentStatus.Ready,
|
||||
isDNS: true
|
||||
},
|
||||
order: {
|
||||
createdAt: 'DESC'
|
||||
@ -661,7 +660,7 @@ export class Database {
|
||||
});
|
||||
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user