Fix updating contact by ID

This commit is contained in:
Eli Ribble 2026-05-21 04:25:36 +00:00
parent 5e103f46a0
commit 594bf33b0a
No known key found for this signature in database

View file

@ -66,7 +66,7 @@ func ContactUpdateName(ctx context.Context, txn db.Ex, id int64, name string) er
SET(
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)
}