• Validate the ownerId and the name of the organization not exist in the database.

    Parameters

    • organizationService: Pick<OrganizationDataService, "getOrganization" | "findOrganizations">
    • orgIdField: TargetField
    • orgNameField: TargetField
    • logger: Logger
    • context: AdapterHandlerContext

    Returns Promise<util.StatusCodes>

    Description

    This validator will check if the ownerId and the name of the organization not exist in the database by applying the following steps in sequence:

    1. Get the organization owner users from the database

    2. Check if the ownerIds and the name of the organization exist in the database

    3. throw error if exist else return 200

Generated using TypeDoc