perf: reverse enrichment order — direct parcel details first, skip immApps
- fetchImmovableParcelDetails called FIRST (1 call, no applicationId needed) - app-based fetchParcelFolosinte only as fallback when direct returns nothing - SOLICITANT skipped entirely (was always '-' for old CF records) - Remove unused pickApplication helper - Net savings: ~500+ API calls per UAT enrichment (50-65% reduction) - copycf/get returns same data as list (no enrichment value, kept as utility)
This commit is contained in:
@@ -525,7 +525,10 @@ export class EterraClient {
|
||||
const payload = {
|
||||
adminUnitId: Number(adminUnitId),
|
||||
paperCadNo: Number(paperCadNo ?? 0),
|
||||
topNo: typeof topNo === "string" ? Number(topNo.split(",")[0]) || 0 : Number(topNo),
|
||||
topNo:
|
||||
typeof topNo === "string"
|
||||
? Number(topNo.split(",")[0]) || 0
|
||||
: Number(topNo),
|
||||
paperCfNo: Number(paperCfNo),
|
||||
};
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user