generated from UK-Export-Finance/nestjs-template
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(DTFS2-7203): fix bug where /companies returns 500 for companies w…
…/o SIC codes (#932) ## Introduction ✏️ As part of https://ukef-dtfs.atlassian.net/browse/DTFS2-7051, we created a new APIM endpoint for returning details from Companies House. During local dev, it was noticed that this new endpoint was returning 500 responses for companies without SIC codes, such as https://find-and-update.company-information.service.gov.uk/company/SL00911A. ## Resolution ✔️ - fixed bug by adding `?` guard when calling `forEach` on property - added unit test for bug ## Miscellaneous ➕ - added `?` guard for other properties - added unit tests for these cases - fixed lint issue
- Loading branch information
1 parent
e19b53a
commit d397861
Showing
5 changed files
with
180 additions
and
30 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.