Fix breaking insert on nuisances subscription

This commit is contained in:
Eli Ribble 2026-02-09 22:43:41 +00:00
parent b9cf98eee8
commit fe3ac88ec6
No known key found for this signature in database

View file

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