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:
@@ -90,8 +90,10 @@ echo json_encode($result->toArray());
|
|||||||
|
|
||||||
// First pass: find latest finished deployment per app
|
// First pass: find latest finished deployment per app
|
||||||
for (const d of rawDeployments) {
|
for (const d of rawDeployments) {
|
||||||
if (d.status === 'finished' && !latestByApp.has(d.application_uuid)) {
|
const appUuid = d.application_uuid as string;
|
||||||
latestByApp.set(d.application_uuid, d.deployment_uuid);
|
const deployUuid = d.deployment_uuid as string;
|
||||||
|
if (d.status === 'finished' && !latestByApp.has(appUuid)) {
|
||||||
|
latestByApp.set(appUuid, deployUuid);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user