diff --git a/db/query/comms/contact.go b/db/query/comms/contact.go index 2c2bb6ab..b8c55315 100644 --- a/db/query/comms/contact.go +++ b/db/query/comms/contact.go @@ -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) }