• Patch message handler

    Parameters

    • chatService: ChatDataService

      injected service use to handle the chat related operations

      • updateOneMessage
    • 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>

    200 Status OK

    • data: patched message

    Description

    This handler will patch message by applying the following steps in sequence:

    1. Patch message by messageId (chatService.updateOneMessage)

    2. Return the patched message

    Throws

    400 NBError Bad Request

    • message id not found

    Throws

    500 NBError Internal Server Error

    • message update failed: ${messageId}

Generated using TypeDoc