From 6dd95784130d90409809c33a7b6de91d5f14d863 Mon Sep 17 00:00:00 2001 From: Luciano Marcos Pierdona Junior <64279791+LucianoPierdona@users.noreply.github.com> Date: Tue, 18 Oct 2022 08:39:06 -0300 Subject: [PATCH] [FIX] Team creation not adding members (#4588) Co-authored-by: Gleidson Daniel Silva --- app/definitions/rest/v1/teams.ts | 2 +- app/lib/services/restApi.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/definitions/rest/v1/teams.ts b/app/definitions/rest/v1/teams.ts index e282e630f..89b4e330a 100644 --- a/app/definitions/rest/v1/teams.ts +++ b/app/definitions/rest/v1/teams.ts @@ -24,7 +24,7 @@ export type TeamsEndpoints = { 'teams.create': { POST: (params: { name: string; - users: string[]; + members: string[]; type: TEAM_TYPE; room: { readOnly: boolean; extraData: { broadcast: boolean; encrypted: boolean } }; }) => { team: ITeam }; diff --git a/app/lib/services/restApi.ts b/app/lib/services/restApi.ts index 045318059..54f169ebf 100644 --- a/app/lib/services/restApi.ts +++ b/app/lib/services/restApi.ts @@ -160,7 +160,7 @@ export const createTeam = ({ }) => { const params = { name, - users, + members: users, type: type ? TEAM_TYPE.PRIVATE : TEAM_TYPE.PUBLIC, room: { readOnly,