Fix updating contact by ID
This commit is contained in:
parent
5e103f46a0
commit
594bf33b0a
1 changed files with 1 additions and 1 deletions
|
|
@ -66,7 +66,7 @@ func ContactUpdateName(ctx context.Context, txn db.Ex, id int64, name string) er
|
||||||
SET(
|
SET(
|
||||||
table.Contact.Name.SET(postgres.String(name)),
|
table.Contact.Name.SET(postgres.String(name)),
|
||||||
).
|
).
|
||||||
WHERE(table.Contact.OrganizationID.EQ(postgres.Int(id)))
|
WHERE(table.Contact.ID.EQ(postgres.Int(id)))
|
||||||
return db.ExecuteNoneTx(ctx, txn, statement)
|
return db.ExecuteNoneTx(ctx, txn, statement)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue