Revert "[MM-46579] Add a limit for preferences" (#22086)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
6b6150d374
Коммит
1fdedf30f1
@@ -33,8 +33,7 @@ func (w *preferencesServiceWrapper) DeletePreferencesForUser(userID string, pref
|
||||
}
|
||||
|
||||
func (a *App) GetPreferencesForUser(userID string) (model.Preferences, *model.AppError) {
|
||||
limit := *a.Config().ServiceSettings.ExperimentalMaxUserPreferences
|
||||
preferences, err := a.Srv().Store().Preference().GetAll(userID, limit)
|
||||
preferences, err := a.Srv().Store().Preference().GetAll(userID)
|
||||
if err != nil {
|
||||
return nil, model.NewAppError("GetPreferencesForUser", "app.preference.get_all.app_error", nil, "", http.StatusBadRequest).Wrap(err)
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user