• Unlock user handler

    Parameters

    • userService: UserDataService

      injected service use to handle the user related operations

      • unlockUser
    • logger: Logger

      injected logger used to handle the logging

    • context: AdapterHandlerContext

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

      • params.userId is required

    Returns Promise<adapter.AdapterHandlerResponse>

    204 Status No Content

    Description

    This handler will unlock user by applying the following steps in sequence:

    1. Get userId from context.params

    2. Unlock user (userService.unlockUser)

    Throws

    Error

    • user id not set

    Throws

    500 NBError Internal Server Error

    • unlock user failed

Generated using TypeDoc