Skip to content

PUB-3134 - Update Info Provider#1630

Open
ChrisS1512 wants to merge 28 commits intomasterfrom
PUB-3134-Updated-Info-Provider
Open

PUB-3134 - Update Info Provider#1630
ChrisS1512 wants to merge 28 commits intomasterfrom
PUB-3134-Updated-Info-Provider

Conversation

@ChrisS1512
Copy link
Copy Markdown
Contributor

JIRA link

https://tools.hmcts.net/jira/browse/PUB-3134

Change description

Update Info Provider
Handled undefined body due to change in express

Does this PR introduce a breaking change? (check one with "x")

[ ] Yes
[x] No


public async post(req: PipRequest, res: Response): Promise<void> {
if (req.query?.showerror === 'true') {
if (req.query?.showerror === 'true' || req.body == undefined) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we use !req.body rather than explicitly check for the undefined value? This happens for some other controller files too?

KianKwa
KianKwa previously approved these changes Feb 24, 2026
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Mar 4, 2026

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Mar 9, 2026

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants