File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
apps/labrinth/src/routes/internal/moderation Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -254,9 +254,8 @@ async fn search_projects(
254254 INNER JOIN versions v ON v.id = f.version_id
255255 INNER JOIN mods m ON m.id = v.mod_id
256256 LEFT JOIN mods_categories mc ON mc.joining_mod_id = m.id
257- INNER JOIN categories c ON c.id = mc.joining_category_id
257+ LEFT JOIN categories c ON c.id = mc.joining_category_id
258258 INNER JOIN threads t ON t.mod_id = m.id
259-
260259 -- fetch report issues and details
261260 INNER JOIN delphi_report_issues dri ON dri.report_id = dr.id
262261 LEFT JOIN delphi_report_issue_details drid ON drid.issue_id = dri.id
@@ -270,7 +269,6 @@ async fn search_projects(
270269 ORDER BY
271270 CASE WHEN $2 = 'created_asc' THEN created ELSE TO_TIMESTAMP(0) END ASC,
272271 CASE WHEN $2 = 'created_desc' THEN created ELSE TO_TIMESTAMP(0) END DESC,
273- CASE WHEN $2 = 'pending_status_first' THEN dri.status ELSE 'pending'::delphi_report_issue_status END ASC,
274272 CASE WHEN $2 = 'severity_asc' THEN dr.severity ELSE 'low'::delphi_severity END ASC,
275273 CASE WHEN $2 = 'severity_desc' THEN dr.severity ELSE 'low'::delphi_severity END DESC
276274
You can’t perform that action at this time.
0 commit comments