Skip to content

Commit

Permalink
rename locationSearchWithoutTimeout
Browse files Browse the repository at this point in the history
  • Loading branch information
jessicamcinchak committed Nov 19, 2024
1 parent 683bab0 commit 13b434c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api.planx.uk/modules/gis/service/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export async function locationSearch(req, res, next) {
// 'geom' param signals this localAuthority has data available via Planning Data
if (req.query.geom) {
try {
const resp = await locationSearchWithoutTimeout(
const resp = await locationSearchViaPlanningData(
req.params.localAuthority,
req.query,
);
Expand All @@ -43,7 +43,7 @@ export async function locationSearch(req, res, next) {
}

// Planning Data is a single request with standardized geometry, so timeout is not necessary
export function locationSearchWithoutTimeout(localAuthority, queryParams) {
export function locationSearchViaPlanningData(localAuthority, queryParams) {
return localAuthorities["digitalLand"].locationSearch(
localAuthority,
queryParams.geom,
Expand Down

0 comments on commit 13b434c

Please sign in to comment.