[FIX] Team creation not adding members (#4588)
Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
This commit is contained in:
parent
34a0bc5ebf
commit
7442f2c844
|
@ -24,7 +24,7 @@ export type TeamsEndpoints = {
|
||||||
'teams.create': {
|
'teams.create': {
|
||||||
POST: (params: {
|
POST: (params: {
|
||||||
name: string;
|
name: string;
|
||||||
users: string[];
|
members: string[];
|
||||||
type: TEAM_TYPE;
|
type: TEAM_TYPE;
|
||||||
room: { readOnly: boolean; extraData: { broadcast: boolean; encrypted: boolean } };
|
room: { readOnly: boolean; extraData: { broadcast: boolean; encrypted: boolean } };
|
||||||
}) => { team: ITeam };
|
}) => { team: ITeam };
|
||||||
|
|
|
@ -160,7 +160,7 @@ export const createTeam = ({
|
||||||
}) => {
|
}) => {
|
||||||
const params = {
|
const params = {
|
||||||
name,
|
name,
|
||||||
users,
|
members: users,
|
||||||
type: type ? TEAM_TYPE.PRIVATE : TEAM_TYPE.PUBLIC,
|
type: type ? TEAM_TYPE.PRIVATE : TEAM_TYPE.PUBLIC,
|
||||||
room: {
|
room: {
|
||||||
readOnly,
|
readOnly,
|
||||||
|
|
Loading…
Reference in New Issue