From 64213eb91989e09917e444c0d24634df9edcb40d Mon Sep 17 00:00:00 2001 From: Roland Sadowski Date: Fri, 17 Jan 2025 09:04:05 +0000 Subject: [PATCH] pass options to fetchLocalAuthorities() --- src/controllers/lpaDetailsController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/lpaDetailsController.js b/src/controllers/lpaDetailsController.js index 92f11beca..788fd7337 100644 --- a/src/controllers/lpaDetailsController.js +++ b/src/controllers/lpaDetailsController.js @@ -3,7 +3,7 @@ import { fetchLocalAuthorities } from '../utils/datasetteQueries/fetchLocalAutho class LpaDetailsController extends PageController { async locals (req, res, next) { - const localAuthoritiesNames = await fetchLocalAuthorities() + const localAuthoritiesNames = await fetchLocalAuthorities({ req }) const listItems = localAuthoritiesNames.map(name => ({ text: name,