From 94217e8c7409615917bcdf16444cc70cd466be7f Mon Sep 17 00:00:00 2001 From: Khalim Conn-Kowlessar Date: Thu, 13 Nov 2025 19:21:42 +0000 Subject: [PATCH] fixed cachig to store more than 100 --- src/app/api/postcode/LookupOsPlaces.ts | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/app/api/postcode/LookupOsPlaces.ts b/src/app/api/postcode/LookupOsPlaces.ts index 7a8d320..720e984 100644 --- a/src/app/api/postcode/LookupOsPlaces.ts +++ b/src/app/api/postcode/LookupOsPlaces.ts @@ -144,5 +144,16 @@ export async function lookupOsPlaces( } } - return { status: 200, data: first.data, results: allResults }; + return { + status: 200, + data: { + ...first.data, + header: { + ...(first.data.header ?? {}), + totalresults: allResults.length, + }, + results: allResults, + }, + results: allResults, + }; }