Filter out NULL languages in allowed_langs aggregation

This commit is contained in:
2026-01-08 22:42:22 +01:00
parent 140efde19b
commit 86e2550413
2 changed files with 3 additions and 3 deletions

View File

@@ -80,7 +80,7 @@ async fn get_user(Path(user_id): Path<i64>, db: Database) -> impl IntoResponse {
languages.id,
languages.label,
languages.code
)::user_language_type),
)::user_language_type) FILTER (WHERE languages.id IS NOT NULL),
ARRAY[]::user_language_type[]
) AS "allowed_langs!: Vec<UserLanguage>"
FROM user_settings