Don't require the ID to be set when inserting contact_phone entries
Some checks failed
/ golint (push) Failing after 9s
Some checks failed
/ golint (push) Failing after 9s
Issue: #27
This commit is contained in:
parent
f4756637d6
commit
d92b579efa
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue