Skip to content

Commit 8a92c8f

Browse files
committed
Change notifier ID to UUID for distributed setups
Signed-off-by: Danny Kopping <danny@coder.com>
1 parent 9789693 commit 8a92c8f

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

coderd/database/queries.sql.go

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coderd/database/queries/notifications.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ WITH acquired AS (
3838
notification_messages
3939
SET updated_at = NOW(),
4040
status = 'leased'::notification_message_status,
41-
status_reason = 'Leased by notifier ' || sqlc.arg('notifier_id')::int,
41+
status_reason = 'Leased by notifier ' || sqlc.arg('notifier_id')::uuid,
4242
leased_until = NOW() + CONCAT(sqlc.arg('lease_seconds')::int, ' seconds')::interval
4343
WHERE id IN (SELECT nm.id
4444
FROM notification_messages AS nm

0 commit comments

Comments
 (0)