• Update many product variants handler

    Parameters

    • productVariantService: ProductVariantDataService

      injected service use to handle the catalog related operations

      • updateProductVariants
    • logger: Logger

      injected logger used to handle the logging

    • context: AdapterHandlerContext

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

    Returns Promise<adapter.AdapterHandlerResponse>

    200 Status Ok

    Description

    This handler is used to update many product variants by applying the following steps in sequence:

    1. Get the product variants ids from body

    2. Update the product variants (productVariantService.updateProductVariants)

    3. Return the status ok

    Throws

    500 NBError Internal Server Error

    • Error happen when update product variants from database

Generated using TypeDoc