Don't require the ID to be set when inserting contact_phone entries
Some checks failed
/ golint (push) Failing after 9s

Issue: #27
This commit is contained in:
Eli Ribble 2026-05-24 21:38:59 +00:00
parent f4756637d6
commit d92b579efa
No known key found for this signature in database

View file

@ -13,7 +13,7 @@ import (
)
func ContactPhoneInsert(ctx context.Context, txn db.Ex, m model.ContactPhone) (model.ContactPhone, error) {
statement := table.ContactPhone.INSERT(table.ContactPhone.AllColumns).
statement := table.ContactPhone.INSERT(table.ContactPhone.MutableColumns).
MODEL(m).
RETURNING(table.ContactPhone.AllColumns)
return db.ExecuteOneTx[model.ContactPhone](ctx, txn, statement)