removeTeamFromItems

Function

Removes a Team from N hub models. First, if passed deleteTeam, it will delete the team Then it iterates over an array of IModels and removes the given team ID from their teams array

  • removeTeamFromItems(teamId: string, models: IModel[], authentication: UserSession) : Promise<IUpdateItemResponse[]>

Parameters

Parameter Type Default Notes
teamId Required string

Team ID of the team we are removing

models Required IModel[]

Array of IModels

authentication Required UserSession

Auth

Returns

{Promise<IUpdateItemResponse[]>}

Promise<IUpdateItemResponse[]>

Function defined in teams/src/remove-team-from-items.ts:16