Skip to content

Commit

Permalink
Fixed parent org logic
Browse files Browse the repository at this point in the history
  • Loading branch information
samisa-abeysinghe committed Oct 3, 2022
1 parent 8d864ce commit 66c3810
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/organization_data.bal
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public distinct service class OrganizationData {
stream<ParentChildOrganization, error?> parent_org_ids = db_client->query(
`SELECT *
FROM avinya_db.parent_child_organization
WHERE parent_org_id = ${self.organization.id}`
WHERE child_org_id = ${self.organization.id}`
);

OrganizationData[] parent_orgs = [];
Expand Down

0 comments on commit 66c3810

Please sign in to comment.