Remove comms.contact_email.id column
The address is the primary key, rather than an ID.
This commit is contained in:
parent
e3cc1e99d1
commit
dcce7cda1c
4 changed files with 7 additions and 12 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue