Update query to get latest DNS record

This commit is contained in:
Shreerang Kale 2025-02-03 13:39:58 +05:30
parent b6084008b8
commit fd38127cb5

View File

@ -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;