Fix APIv4 relationship_type_id join: use dot syntax not colon

This commit is contained in:
Joel Brock
2026-05-09 21:10:56 -07:00
parent da830af533
commit 1655c485d9
3 changed files with 8 additions and 8 deletions

View File

@@ -124,7 +124,7 @@ export async function GET(req: NextRequest) {
select: ["contact_id_b"],
where: [
["contact_id_a", "=", Number(cid)],
["relationship_type_id:name_a_b", "=", FORM_CONTACT_RELATIONSHIP],
["relationship_type_id.name_a_b", "=", FORM_CONTACT_RELATIONSHIP],
["is_active", "=", true],
],
limit: 2,