Issue: #9
This commit is contained in:
parent
9d1063187a
commit
72eef554ea
1 changed files with 2 additions and 2 deletions
|
|
@ -31,14 +31,14 @@ func ContactEmptyForOrganization(ctx context.Context, txn db.Ex, org_id int64) (
|
||||||
postgres.NOT(
|
postgres.NOT(
|
||||||
postgres.EXISTS(
|
postgres.EXISTS(
|
||||||
postgres.SELECT(
|
postgres.SELECT(
|
||||||
postgres.Int(1),
|
postgres.RawInt("1"),
|
||||||
).FROM(table.ContactEmail).
|
).FROM(table.ContactEmail).
|
||||||
WHERE(table.ContactEmail.ContactID.EQ(table.Contact.ID)),
|
WHERE(table.ContactEmail.ContactID.EQ(table.Contact.ID)),
|
||||||
)),
|
)),
|
||||||
postgres.NOT(
|
postgres.NOT(
|
||||||
postgres.EXISTS(
|
postgres.EXISTS(
|
||||||
postgres.SELECT(
|
postgres.SELECT(
|
||||||
postgres.Int(1),
|
postgres.RawInt("1"),
|
||||||
).FROM(table.ContactPhone).
|
).FROM(table.ContactPhone).
|
||||||
WHERE(table.ContactPhone.ContactID.EQ(table.Contact.ID)),
|
WHERE(table.ContactPhone.ContactID.EQ(table.Contact.ID)),
|
||||||
)),
|
)),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue