• Delete many products handler

    Parameters

    • productService: ProductDataService

      injected service use to handle the catalog related operations

    • productVariantService: ProductVariantDataService
    • logger: Logger

      injected logger used to handle the logging

    • context: AdapterHandlerContext

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

      • body.ids is required

    Returns Promise<adapter.AdapterHandlerResponse>

    204 Status No Content

    Description

    This handler is used to delete many products by applying the following steps in sequence:

    1. Get the ids from body

    2. Delete the products (productService.deleteManyProducts)

    3. Return the status

    Throws

    Error

    • ids is missing from body

    Throws

    500 NBError Internal Server Error

    • Error happen when delete products ${ids} from database

Generated using TypeDoc