DEV: Remove deprecated 'desc' parameter from group members endpoint (#22147)

This commit is contained in:
Ted Johansson 2023-06-16 16:42:00 +08:00 committed by GitHub
parent d60c90aef1
commit 517c9e7782
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 8 deletions

View File

@ -242,14 +242,6 @@ class GroupsController < ApplicationController
raise Discourse::InvalidParameters.new(:offset) if offset < 0
dir = (params[:asc] && params[:asc].present?) ? "ASC" : "DESC"
if params[:desc]
Discourse.deprecate(
":desc is deprecated please use :asc instead",
output_in_test: true,
drop_from: "2.9.0",
)
dir = (params[:desc] && params[:desc].present?) ? "DESC" : "ASC"
end
order = "NOT group_users.owner"
if params[:requesters]