diff --git a/store/sqlstore/user_store.go b/store/sqlstore/user_store.go index 4007f009ee..453c797193 100644 --- a/store/sqlstore/user_store.go +++ b/store/sqlstore/user_store.go @@ -978,7 +978,7 @@ func (us SqlUserStore) GetAllNotInAuthService(authServices []string) ([]*model.U var users []*model.User if _, err := us.GetReplica().Select(&users, queryString, args...); err != nil { - return nil, model.NewAppError("SqlUserStore.GetAllUsingAuthService", "store.sql_user.get_by_auth.other.app_error", nil, "", http.StatusInternalServerError) + return nil, model.NewAppError("SqlUserStore.GetAllNotInAuthService", "store.sql_user.get_by_auth.other.app_error", nil, "", http.StatusInternalServerError) } return users, nil