Migrate "User.GetProfilesWithoutTeam" to Sync by default (#11612)

* 👤 Migrates GetProfilesWithoutTeam to Sync

* 🔬 Fix tests

* 🗣 Address CR feedback

* 🏃‍♂️ Run `make store-mocks`
Этот коммит содержится в:
Dave Lunny
2019-07-12 23:11:59 -07:00
коммит произвёл Jesús Espino
родитель 48e06e9bc4
Коммит 53f1cf1cb2
5 изменённых файлов: 51 добавлений и 50 удалений

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

@@ -583,11 +583,7 @@ func (a *App) GetUsersWithoutTeamPage(page int, perPage int, asAdmin bool, viewR
}
func (a *App) GetUsersWithoutTeam(offset int, limit int, viewRestrictions *model.ViewUsersRestrictions) ([]*model.User, *model.AppError) {
result := <-a.Srv.Store.User().GetProfilesWithoutTeam(offset, limit, viewRestrictions)
if result.Err != nil {
return nil, result.Err
}
return result.Data.([]*model.User), nil
return a.Srv.Store.User().GetProfilesWithoutTeam(offset, limit, viewRestrictions)
}
// GetTeamGroupUsers returns the users who are associated to the team via GroupTeams and GroupMembers.