Skip to content

Commit

Permalink
Merge pull request #182 from YujithIsura/main
Browse files Browse the repository at this point in the history
nic no uniqued for a particular batch
  • Loading branch information
YujithIsura authored Dec 5, 2024
2 parents 8fe6500 + cd5d0b7 commit e09b753
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions api/main.bal
Original file line number Diff line number Diff line change
Expand Up @@ -5761,9 +5761,10 @@ AND p.organization_id IN (

Person|error? personRaw = db_client->queryRow(
`SELECT *
FROM person
WHERE
nic_no = ${person.nic_no};`
FROM person p
left join organization o on o.id = p.organization_id
WHERE o.id = ${person.organization_id} and
p.nic_no = ${person.nic_no};`
);

if (personRaw is Person) {
Expand Down

0 comments on commit e09b753

Please sign in to comment.