Fix TypeScript error: cast unknown to string in deployment loop

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Alejandro Gutiérrez
2026-02-02 01:57:48 +00:00
parent 73ac2ddc21
commit 84d5633b36

View File

@@ -90,8 +90,10 @@ echo json_encode($result->toArray());
// First pass: find latest finished deployment per app
for (const d of rawDeployments) {
if (d.status === 'finished' && !latestByApp.has(d.application_uuid)) {
latestByApp.set(d.application_uuid, d.deployment_uuid);
const appUuid = d.application_uuid as string;
const deployUuid = d.deployment_uuid as string;
if (d.status === 'finished' && !latestByApp.has(appUuid)) {
latestByApp.set(appUuid, deployUuid);
}
}