From b78a2df159f6f1a835d23fee4bd7182522cc4700 Mon Sep 17 00:00:00 2001 From: Andre Medeiros Date: Fri, 18 Nov 2022 08:58:33 -0500 Subject: [PATCH] [render skip] fix api live activities --- internal/repository/postgres_live_activity.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/repository/postgres_live_activity.go b/internal/repository/postgres_live_activity.go index af08235..2b2a84c 100644 --- a/internal/repository/postgres_live_activity.go +++ b/internal/repository/postgres_live_activity.go @@ -75,7 +75,7 @@ func (p *postgresLiveActivityRepository) Create(ctx context.Context, la *domain. query := ` INSERT INTO live_activities (apns_token, reddit_account_id, access_token, refresh_token, token_expires_at, thread_id, subreddit, next_check_at, expires_at, development) VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) - ON CONFLICT (apns_token) DO UPDATE SET expires_at = $10 + ON CONFLICT (apns_token) DO UPDATE SET expires_at = $9 RETURNING id` return p.conn.QueryRow(ctx, query,