Fix breaking insert on nuisances subscription
This commit is contained in:
parent
b9cf98eee8
commit
fe3ac88ec6
1 changed files with 1 additions and 1 deletions
|
|
@ -40,7 +40,7 @@ func (sr Nuisance) addNotificationEmail(ctx context.Context, txn bob.Tx, email s
|
|||
NuisanceID: omit.From(sr.id),
|
||||
EmailAddress: omit.From(email),
|
||||
}
|
||||
_, err := models.PublicreportNotifyPhoneNuisances.Insert(&setter).Exec(ctx, txn)
|
||||
_, err := models.PublicreportNotifyEmailNuisances.Insert(&setter).Exec(ctx, txn)
|
||||
if err != nil {
|
||||
return newInternalError(err, "Failed to save new notification email row")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue