Fix creating a report with a new phone number
This commit is contained in:
parent
ba22ed2733
commit
64cd2f49dc
1 changed files with 4 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue