• Delete organization handler

    Parameters

    • organizationService: Pick<OrganizationDataService, "deleteOrganization" | "getOrganization">

      injected service use to handle the organization related operations

      • getOrganization
      • deleteOrganization
    • hierarchyService: Pick<HierarchyDataService, "recalculateChildrenCount">

      injected service use to handle the hierarchy related operations

      • recalculateChildrenCount
    • logger: Logger

      injected logger used to handle the logging

    • context: AdapterHandlerContext

      request context [headers, body, params, query]. Note:

      • params is required

    Returns Promise<adapter.AdapterHandlerResponse>

    204 No Content

    Description

    This handler will delete organization by applying the following steps in sequence:

    1. Delete organization

    Throws

    404 NBError Not Found

    • organization with the given id not found

    Throws

    500 NBError Internal Server Error

    • error when deleting organization

Generated using TypeDoc