[FIX] Team creation not adding members (#4588)
Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
This commit is contained in:
parent
a7faed3bf7
commit
64f48ae380
|
@ -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 };
|
||||
|
|
|
@ -160,7 +160,7 @@ export const createTeam = ({
|
|||
}) => {
|
||||
const params = {
|
||||
name,
|
||||
users,
|
||||
members: users,
|
||||
type: type ? TEAM_TYPE.PRIVATE : TEAM_TYPE.PUBLIC,
|
||||
room: {
|
||||
readOnly,
|
||||
|
|
Loading…
Reference in New Issue