Changes method name, removes error case. (#11427)
* Changes method name, removes previous error case. * Fixes test now that the method is idempotent.
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
22fb7d9116
Коммит
ab4eaf898b
@@ -79,8 +79,8 @@ func (a *App) GetGroupMemberUsersPage(groupID string, page int, perPage int) ([]
|
||||
return members, count, nil
|
||||
}
|
||||
|
||||
func (a *App) CreateOrRestoreGroupMember(groupID string, userID string) (*model.GroupMember, *model.AppError) {
|
||||
result := <-a.Srv.Store.Group().CreateOrRestoreMember(groupID, userID)
|
||||
func (a *App) UpsertGroupMember(groupID string, userID string) (*model.GroupMember, *model.AppError) {
|
||||
result := <-a.Srv.Store.Group().UpsertMember(groupID, userID)
|
||||
if result.Err != nil {
|
||||
return nil, result.Err
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user