Skip to content

Commit 5a056bd

Browse files
authored
Merge pull request #1699 from companieshouse/feat/roe-2732/add-force-flag-to-get-call
feat: add force flag to bo/mo fetch method
2 parents f3e2103 + 8ee5ad0 commit 5a056bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/middleware/navigation/has.beneficial.owners.or.managing.officers.middleware.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import { SOLD_LAND_FILTER_URL } from '../../config';
99
export const hasBOsOrMOs = async (req: Request, res: Response, next: NextFunction): Promise<void> => {
1010
try {
1111
const isRegistration = isRegistrationJourney(req);
12-
const appData: ApplicationData = await fetchApplicationData(req, isRegistration);
13-
if ( !checkBOsOrMOsDetailsEntered(appData) ) {
12+
const appData: ApplicationData = await fetchApplicationData(req, isRegistration, true);
13+
if (!checkBOsOrMOsDetailsEntered(appData)) {
1414
logger.infoRequest(req, NavigationErrorMessage);
1515
return res.redirect(SOLD_LAND_FILTER_URL);
1616
}

0 commit comments

Comments
 (0)