Remove comms.contact_email.id column

The address is the primary key, rather than an ID.
This commit is contained in:
Eli Ribble 2026-05-21 17:05:56 +00:00
parent e3cc1e99d1
commit dcce7cda1c
No known key found for this signature in database
4 changed files with 7 additions and 12 deletions

View file

@ -92,10 +92,9 @@ func SaveReporter(ctx context.Context, txn db.Ex, report modelpublicreport.Repor
}
if email_address != "" {
e, err := querycomms.ContactEmailInsert(ctx, txn, modelcomms.ContactEmail{
Address: email_address,
Confirmed: false,
ContactID: contact.ID,
//ID
Address: email_address,
Confirmed: false,
ContactID: contact.ID,
IsSubscribed: false,
})
if err != nil {