diff --git a/db/query/comms/contact.go b/db/query/comms/contact.go index 002cfe6f..2c2bb6ab 100644 --- a/db/query/comms/contact.go +++ b/db/query/comms/contact.go @@ -31,14 +31,14 @@ func ContactEmptyForOrganization(ctx context.Context, txn db.Ex, org_id int64) ( postgres.NOT( postgres.EXISTS( postgres.SELECT( - postgres.Int(1), + postgres.RawInt("1"), ).FROM(table.ContactEmail). WHERE(table.ContactEmail.ContactID.EQ(table.Contact.ID)), )), postgres.NOT( postgres.EXISTS( postgres.SELECT( - postgres.Int(1), + postgres.RawInt("1"), ).FROM(table.ContactPhone). WHERE(table.ContactPhone.ContactID.EQ(table.Contact.ID)), )),