fix: [#188172536] add userId to business object #9292
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR introduces a major change by adding a userId field to the business object. This addition ensures that each business is associated with a specific user, which will support future features involving the business-user relationship. The generateBusiness method has been updated to take an argument of UserData to include the userId in the business object
Ticket
This pull request resolves #188172536.
Approach
Updated the generateBusiness method to accept UserData as an argument, allowing the userId to be added to the business object.
All instances where generateBusiness is used have been updated to reflect this change, ensuring that the userId is properly included in the business object.
This ensures consistency across the codebase and sets up the necessary foundation for future work that depends on the userId field in the business object
Steps to Test
n/A
Notes
Code author checklist
userData
(includingprofileData
,formationData
etc), then I added a new migration filecmsCollections.ts
(see CMS Additions in Engineering Reference/FAQ on the engineering documentation site).env
values in both.env-template
and in Bitwarden