• Does subscription exist validator

    Parameters

    • notificationService: NotificationDataService

      injected service use to handle the notification related operations

      • getOneSubscription
    • targetField: TargetField

      which field to get the subscription id from

    • logger: Logger

      injected logger used to handle the logging

    • context: AdapterHandlerContext

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

    Returns Promise<number>

    200 Status OK

    Description

    This validator checks if the subscription exists by applying the following steps in sequence:

    1. Get subscription by id (notificationService.getOneSubscription)

    2. Check if the subscription exists

    Throws

    404 NBError Not Found

    • subscription not found

Generated using TypeDoc