mirror of
https://github.com/coder/coder.git
synced 2025-07-15 22:20:27 +00:00
feat(site): implement notification ui (#14175)
This commit is contained in:
@ -3659,6 +3659,7 @@ const getNotificationTemplatesByKind = `-- name: GetNotificationTemplatesByKind
|
||||
SELECT id, name, title_template, body_template, actions, "group", method, kind
|
||||
FROM notification_templates
|
||||
WHERE kind = $1::notification_template_kind
|
||||
ORDER BY name ASC
|
||||
`
|
||||
|
||||
func (q *sqlQuerier) GetNotificationTemplatesByKind(ctx context.Context, kind NotificationTemplateKind) ([]NotificationTemplate, error) {
|
||||
|
@ -170,4 +170,5 @@ WHERE id = @id::uuid;
|
||||
-- name: GetNotificationTemplatesByKind :many
|
||||
SELECT *
|
||||
FROM notification_templates
|
||||
WHERE kind = @kind::notification_template_kind;
|
||||
WHERE kind = @kind::notification_template_kind
|
||||
ORDER BY name ASC;
|
||||
|
Reference in New Issue
Block a user