fix(projects): return 0 if no parent project exists

This commit is contained in:
kolaente 2024-10-29 08:25:13 +01:00
parent 540c5f4225
commit dace07efda
No known key found for this signature in database
GPG Key ID: F40E70337AB24C9B
1 changed files with 1 additions and 1 deletions

View File

@ -515,7 +515,7 @@ INNER JOIN all_projects ap ON p.parent_project_id = ap.id`
"all_projects.identifier",
"all_projects.hex_color",
"all_projects.owner_id",
"all_projects.parent_project_id",
"CASE WHEN all_projects.parent_project_id IS NULL THEN 0 ELSE all_projects.parent_project_id END AS parent_project_id",
"all_projects.is_archived",
"all_projects.background_file_id",
"all_projects.background_blur_hash",