Options
All
  • Public
  • Public/Protected
  • All
Menu

Referral table service.

Hierarchy

  • ReferralService

Index

Constructors

constructor

Methods

deleteReferral

  • deleteReferral(newUserID: string): Promise<void>

deleteUserReferrals

  • deleteUserReferrals(userID: string): Promise<void>

getReferral

  • getReferral(newUserID: string): Promise<NBReferral>

getReferrals

  • getReferrals(userID: string): Promise<NBReferral[]>

reachedReferralThreshold

  • reachedReferralThreshold(userID: string): Promise<boolean>
  • Determine whether or not a user has reached the referral threshold.

    Parameters

    • userID: string

      The user's ID.

    Returns Promise<boolean>

    Whether or not the user has reached the referral threshold.

referUser

  • referUser(userID: string, newUserID: string): Promise<NBReferral>

Generated using TypeDoc