mirror of
https://github.com/coder/coder.git
synced 2026-09-22 05:05:20 +08: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:
@@ -558,6 +558,8 @@ func (q *FakeQuerier) templateWithNameNoLock(tpl database.TemplateTable) databas
|
||||
withNames.CreatedByUsername = user.Username
|
||||
withNames.CreatedByAvatarURL = user.AvatarURL
|
||||
withNames.OrganizationName = org.Name
|
||||
withNames.OrganizationDisplayName = org.DisplayName
|
||||
withNames.OrganizationIcon = org.Icon
|
||||
return withNames
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user