fix: moderation queue endpoint regression (#7003)

fix: regression caused by 2308ac1 changes
This commit is contained in:
Calum H.
2026-08-05 10:47:06 +00:00
committed by GitHub
parent 5148e8ec35
commit bca8b1a02b
7 changed files with 172 additions and 174 deletions
@@ -76,12 +76,10 @@
"name": "delphi_severity",
"kind": {
"Enum": [
"hidden",
"low",
"medium",
"high",
"severe",
"malware"
"severe"
]
}
}
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
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_owner.username AS owner_name,
CASE
WHEN mp.components ? 'minecraft_server'
WHEN jsonb_typeof(mp.components -> 'minecraft_server') = 'object'
THEN ARRAY_APPEND(
ARRAY_REMOVE(
COALESCE(vpt.project_types::text[], ARRAY[]::text[]),
@@ -603,7 +603,7 @@ pub async fn get_projects_internal(
owner.username AS owner_name,
owner.avatar_url AS owner_icon_url,
CASE
WHEN m.components ? 'minecraft_server'
WHEN jsonb_typeof(m.components -> 'minecraft_server') = 'object'
THEN ARRAY_APPEND(
ARRAY_REMOVE(
COALESCE(ppt.project_types::text[], ARRAY[]::text[]),
@@ -808,7 +808,7 @@ pub async fn get_project_ids(
search_organization.name AS organization_name,
search_owner.username AS owner_name,
CASE
WHEN mp.components ? 'minecraft_server'
WHEN jsonb_typeof(mp.components -> 'minecraft_server') = 'object'
THEN ARRAY_APPEND(
ARRAY_REMOVE(
COALESCE(vpt.project_types::text[], ARRAY[]::text[]),