mirror of
https://github.com/modrinth/code.git
synced 2026-08-25 00:55:25 +00:00
fix: moderation queue endpoint regression (#7003)
fix: regression caused by 2308ac1 changes
This commit is contained in:
Generated
+1
-3
@@ -76,12 +76,10 @@
|
|||||||
"name": "delphi_severity",
|
"name": "delphi_severity",
|
||||||
"kind": {
|
"kind": {
|
||||||
"Enum": [
|
"Enum": [
|
||||||
"hidden",
|
|
||||||
"low",
|
"low",
|
||||||
"medium",
|
"medium",
|
||||||
"high",
|
"high",
|
||||||
"severe",
|
"severe"
|
||||||
"malware"
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
+28
File diff suppressed because one or more lines are too long
Generated
-28
File diff suppressed because one or more lines are too long
Generated
+138
File diff suppressed because one or more lines are too long
+2
-2
File diff suppressed because one or more lines are too long
Generated
-138
File diff suppressed because one or more lines are too long
@@ -333,7 +333,7 @@ pub async fn get_projects_internal(
|
|||||||
search_organization.name AS organization_name,
|
search_organization.name AS organization_name,
|
||||||
search_owner.username AS owner_name,
|
search_owner.username AS owner_name,
|
||||||
CASE
|
CASE
|
||||||
WHEN mp.components ? 'minecraft_server'
|
WHEN jsonb_typeof(mp.components -> 'minecraft_server') = 'object'
|
||||||
THEN ARRAY_APPEND(
|
THEN ARRAY_APPEND(
|
||||||
ARRAY_REMOVE(
|
ARRAY_REMOVE(
|
||||||
COALESCE(vpt.project_types::text[], ARRAY[]::text[]),
|
COALESCE(vpt.project_types::text[], ARRAY[]::text[]),
|
||||||
@@ -603,7 +603,7 @@ pub async fn get_projects_internal(
|
|||||||
owner.username AS owner_name,
|
owner.username AS owner_name,
|
||||||
owner.avatar_url AS owner_icon_url,
|
owner.avatar_url AS owner_icon_url,
|
||||||
CASE
|
CASE
|
||||||
WHEN m.components ? 'minecraft_server'
|
WHEN jsonb_typeof(m.components -> 'minecraft_server') = 'object'
|
||||||
THEN ARRAY_APPEND(
|
THEN ARRAY_APPEND(
|
||||||
ARRAY_REMOVE(
|
ARRAY_REMOVE(
|
||||||
COALESCE(ppt.project_types::text[], ARRAY[]::text[]),
|
COALESCE(ppt.project_types::text[], ARRAY[]::text[]),
|
||||||
@@ -808,7 +808,7 @@ pub async fn get_project_ids(
|
|||||||
search_organization.name AS organization_name,
|
search_organization.name AS organization_name,
|
||||||
search_owner.username AS owner_name,
|
search_owner.username AS owner_name,
|
||||||
CASE
|
CASE
|
||||||
WHEN mp.components ? 'minecraft_server'
|
WHEN jsonb_typeof(mp.components -> 'minecraft_server') = 'object'
|
||||||
THEN ARRAY_APPEND(
|
THEN ARRAY_APPEND(
|
||||||
ARRAY_REMOVE(
|
ARRAY_REMOVE(
|
||||||
COALESCE(vpt.project_types::text[], ARRAY[]::text[]),
|
COALESCE(vpt.project_types::text[], ARRAY[]::text[]),
|
||||||
|
|||||||
Reference in New Issue
Block a user