[server] Use default storage when no mounts are found

This commit is contained in:
Abhishek Shroff
2025-06-29 18:20:52 +05:30
parent c578b6011c
commit 2756cb737a

View File

@@ -73,8 +73,7 @@ UNION ALL
FROM resources r
LEFT JOIN storage_mounts s ON r.id = s.id
JOIN nodes n ON r.id = n.parent
) SELECT storage from nodes n WHERE n.parent IS NULL;
`
) SELECT COALESCE(storage, '_') from nodes n WHERE n.parent IS NULL`
row := db.QueryRow(q, versionID)
var s string