mirror of
https://github.com/coder/coder.git
synced 2025-07-15 22:20:27 +00:00
feat: add killswitch for notifications (#13794)
This commit is contained in:
@ -79,3 +79,13 @@ SELECT
|
||||
-- name: UpsertHealthSettings :exec
|
||||
INSERT INTO site_configs (key, value) VALUES ('health_settings', $1)
|
||||
ON CONFLICT (key) DO UPDATE SET value = $1 WHERE site_configs.key = 'health_settings';
|
||||
|
||||
-- name: GetNotificationsSettings :one
|
||||
SELECT
|
||||
COALESCE((SELECT value FROM site_configs WHERE key = 'notifications_settings'), '{}') :: text AS notifications_settings
|
||||
;
|
||||
|
||||
-- name: UpsertNotificationsSettings :exec
|
||||
INSERT INTO site_configs (key, value) VALUES ('notifications_settings', $1)
|
||||
ON CONFLICT (key) DO UPDATE SET value = $1 WHERE site_configs.key = 'notifications_settings';
|
||||
|
||||
|
Reference in New Issue
Block a user