• Update topic handler

    Parameters

    • notificationService: NotificationDataService

      injected service use to handle the notification related operations

      • updateOneTopic
      • getOneTopicAndNormalize
    • logger: Logger

      injected logger used to handle the logging

    • context: AdapterHandlerContext

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

    Returns Promise<adapter.AdapterHandlerResponse>

    200 Status OK

    • data: topic

    Description

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

    1. Patch topic (notificationService.updateOneTopic)

    2. Get topic by id and normalize (notificationService.getOneTopicAndNormalize)

    3. Return the topic

    Throws

    500 NBError Internal Server Error

    • patch topic failed

Generated using TypeDoc