Story Maker
    Preparing search index...

    Function updateTeamUser

    • Updates a user's role within a team or adds the user to the team if not already a member.

      Parameters

      • team_id: string

        The ID of the team.

      • user_id: string

        The ID of the user.

      • role: "user" | "admin"

        The new role for the user.

      Returns Promise<void>

      If the database update operation fails.