[MM-28210] sqlstore/user_store: filter deleted users for GetProfilesInChannel (#15390)
* sqlstore/user_store: filter deleted users for GetProfilesInChannel * allow GetProfilesInChannel use userGetOptions * sqlstore/user_store: add more test cases * store/user_store: refine filter
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
9c272f0b20
Коммит
e69a2a41ca
@@ -6844,15 +6844,15 @@ func (s *RetryLayerUserStore) GetProfilesByUsernames(usernames []string, viewRes
|
||||
|
||||
}
|
||||
|
||||
func (s *RetryLayerUserStore) GetProfilesInChannel(channelId string, offset int, limit int) ([]*model.User, *model.AppError) {
|
||||
func (s *RetryLayerUserStore) GetProfilesInChannel(options *model.UserGetOptions) ([]*model.User, *model.AppError) {
|
||||
|
||||
return s.UserStore.GetProfilesInChannel(channelId, offset, limit)
|
||||
return s.UserStore.GetProfilesInChannel(options)
|
||||
|
||||
}
|
||||
|
||||
func (s *RetryLayerUserStore) GetProfilesInChannelByStatus(channelId string, offset int, limit int) ([]*model.User, *model.AppError) {
|
||||
func (s *RetryLayerUserStore) GetProfilesInChannelByStatus(options *model.UserGetOptions) ([]*model.User, *model.AppError) {
|
||||
|
||||
return s.UserStore.GetProfilesInChannelByStatus(channelId, offset, limit)
|
||||
return s.UserStore.GetProfilesInChannelByStatus(options)
|
||||
|
||||
}
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user