fix: dynamic workspaceId for no-geometry scan (was hardcoded 65)

- resolveWorkspacePk chain: explicit param -> GisUat DB -> ArcGIS layer query
- UI passes workspacePk from UAT selection to scan API
- Fixes: FELEACU (Cluj, workspace!=65) returning 0 immovables
- Better messaging: shows X total, Y with geometry, Z without
- Shows warning when 0 immovables found (workspace resolution failed)
This commit is contained in:
AI Assistant
2026-03-07 16:52:20 +02:00
parent ddde2db900
commit db6ac5d3a3
4 changed files with 133 additions and 25 deletions
@@ -272,6 +272,7 @@ export async function POST(req: Request) {
phase = ph;
updatePhaseProgress(done, tot);
},
// workspacePk will be auto-resolved from DB/ArcGIS inside the service
},
);