* Fix return type of addUsersToChannel

* Fix type of TeamInviteWithError.error

* Change Constants.Integrations.PAGE_SIZE into a number"
Этот коммит содержится в:
Harrison Healey
2024-01-23 09:33:03 -05:00
коммит произвёл GitHub
родитель 8a869b0623
Коммит e98aa55ad7
10 изменённых файлов: 21 добавлений и 14 удалений

Просмотреть файл

@@ -1535,7 +1535,7 @@ export default class Client4 {
sendEmailGuestInvitesToChannelsGracefully = async (teamId: string, channelIds: string[], emails: string[], message: string) => {
this.trackEvent('api', 'api_teams_invite_guests', {team_id: teamId, channel_ids: channelIds});
return this.doFetch<TeamInviteWithError>(
return this.doFetch<TeamInviteWithError[]>(
`${this.getTeamRoute(teamId)}/invite-guests/email?graceful=true`,
{method: 'post', body: JSON.stringify({emails, channels: channelIds, message})},
);