From 64cd2f49dca6f0135addf1d5f468414179ddb95f Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Fri, 30 Jan 2026 23:09:21 +0000 Subject: [PATCH] Fix creating a report with a new phone number --- platform/text/report-subscription.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/platform/text/report-subscription.go b/platform/text/report-subscription.go index 4a32a0b2..b7aefce1 100644 --- a/platform/text/report-subscription.go +++ b/platform/text/report-subscription.go @@ -48,6 +48,10 @@ func sendReportSubscription(ctx context.Context, job Job) error { return fmt.Errorf("job is not for report subscription confirmation") } + err := ensureInDB(ctx, job.destination()) + if err != nil { + return fmt.Errorf("Failed to ensure text message destination is in the DB: %w", err) + } sub, err := isSubscribed(ctx, job.destination()) if err != nil { return fmt.Errorf("Failed to check if subscribed: %w", err)