injected logger used to handle the logging
request context [headers, body, params, query].
200 Status OK
If an owner role users update their owner role to another organization with an identical name, the users become owner on two organizations.
This validator prevents the user from being an owner of multiple organizations with identical names.
Filter the array where the role property contains the value 'owner'.
Retrieve the organization name using the orgId found in the URL parameter.
Validate if the userId within the body corresponds to an owner associated with the same organization name.
Verify the existing record to confirm if the orgId specified in the parameter aligns with the orgId in record.
400 NBError Bad Request
Generated using TypeDoc
This validator prevents owner user of an organization from updating owner role on another organization that shares an identical name.