mirror of
https://github.com/coder/coder.git
synced 2026-06-03 13:08:25 +00:00
chore: return organization's display name and icon in templates (#13858)
* chore: templates return organization display name and icon * templates api response includes organization display name and icon
This commit is contained in:
Generated
+3
-1
@@ -1087,7 +1087,9 @@ CREATE VIEW template_with_names AS
|
||||
templates.max_port_sharing_level,
|
||||
COALESCE(visible_users.avatar_url, ''::text) AS created_by_avatar_url,
|
||||
COALESCE(visible_users.username, ''::text) AS created_by_username,
|
||||
COALESCE(organizations.name, ''::text) AS organization_name
|
||||
COALESCE(organizations.name, ''::text) AS organization_name,
|
||||
COALESCE(organizations.display_name, ''::text) AS organization_display_name,
|
||||
COALESCE(organizations.icon, ''::text) AS organization_icon
|
||||
FROM ((templates
|
||||
LEFT JOIN visible_users ON ((templates.created_by = visible_users.id)))
|
||||
LEFT JOIN organizations ON ((templates.organization_id = organizations.id)));
|
||||
|
||||
Reference in New Issue
Block a user