Fix APIv4 relationship_type_id join: use dot syntax not colon
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user