Skip to content

Commit 0b21a95

Browse files
committed
excluded
1 parent e02d271 commit 0b21a95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coderd/database/queries/notifications.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ WHERE
187187
-- name: UpsertReportGeneratorLog :exec
188188
-- Insert or update report generator logs with recent activity.
189189
INSERT INTO report_generator_logs (user_id, notification_template_id, last_generated_at) VALUES (@user_id, @notification_template_id, @last_generated_at)
190-
ON CONFLICT (user_id, notification_template_id) DO UPDATE set last_generated_at = @last_generated_at WHERE (user_id = @user_id AND notification_template_id = @notification_template_id);
190+
ON CONFLICT (user_id, notification_template_id) DO UPDATE set last_generated_at = EXCLUDED.last_generated_at WHERE (user_id = EXCLUDED.user_id AND notification_template_id = EXCLUDED.notification_template_id);
191191

192192
-- name: DeleteOldReportGeneratorLogs :exec
193193
-- Delete report generator logs that have been created at least a <frequency_days> +1h ago.

0 commit comments

Comments
 (0)