From 7b75539848b5c0ed0963c61759fdad8c8b24b35e Mon Sep 17 00:00:00 2001 From: Rowan Seymour Date: Tue, 3 Dec 2024 15:22:01 -0500 Subject: [PATCH] Consistently use timestampz instead of timestamp with time zone --- core/models/campaigns.go | 2 +- core/models/msgs.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/models/campaigns.go b/core/models/campaigns.go index c05eed716..61d54eb4f 100644 --- a/core/models/campaigns.go +++ b/core/models/campaigns.go @@ -343,7 +343,7 @@ const sqlMarkEventsFired = ` UPDATE campaigns_eventfire f SET - fired = r.fired::timestamp with time zone, + fired = r.fired::timestampz, fired_result = r.fired_result::varchar FROM ( VALUES(:fire_id, :fired, :fired_result) diff --git a/core/models/msgs.go b/core/models/msgs.go index 3707fd976..ca826669b 100644 --- a/core/models/msgs.go +++ b/core/models/msgs.go @@ -656,7 +656,7 @@ func MarkMessagesQueued(ctx context.Context, db DBorTx, msgs []*Msg) error { const sqlUpdateMsgStatus = ` UPDATE msgs_msg - SET status = m.status, next_attempt = m.next_attempt::timestamp with time zone + SET status = m.status, next_attempt = m.next_attempt::timestampz FROM (VALUES(:id, :status, :next_attempt)) AS m(id, status, next_attempt) WHERE msgs_msg.id = m.id::bigint`