• Delete subscription handler

    Parameters

    • chatService: ChatDataService

      injected service use to handle the chat related operations

      • deleteOneSubscription
    • logger: Logger

      injected logger used to handle the logging

    • context: AdapterHandlerContext

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

      • params.id is required

    Returns Promise<adapter.AdapterHandlerResponse>

    204 Status No Content

    Description

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

    1. Delete subscription (chatService.deleteOneSubscription)

    2. Return 204 Status No Content

    Throws

    400 NBError Bad Request

    • subscription id not found

    Throws

    500 NBError Internal Server Error

    • subscription delete failed

Generated using TypeDoc