Fix creating a report with a new phone number

This commit is contained in:
Eli Ribble 2026-01-30 23:09:21 +00:00
parent ba22ed2733
commit 64cd2f49dc
No known key found for this signature in database

View file

@ -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)