mirror of
https://github.com/mattermost/mattermost.git
synced 2026-04-24 23:58:13 -04:00
Fix not enough return values in handleChannelCreation (#27430)
This commit is contained in:
parent
d490fdc1d9
commit
a181b3bc7b
1 changed files with 1 additions and 1 deletions
|
|
@ -262,7 +262,7 @@ func (scs *Service) handleChannelCreation(invite channelInviteMsg, rc *model.Rem
|
|||
if teamId == "" {
|
||||
teams, err := scs.server.GetStore().Team().GetAllPage(0, 1, nil)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("cannot get team to create the channel `%s`: %w", invite.ChannelId, err)
|
||||
return nil, false, fmt.Errorf("cannot get team to create the channel `%s`: %w", invite.ChannelId, err)
|
||||
}
|
||||
teamId = teams[0].Id
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue