Skip to content

Commit 43064f5

Browse files
committed
avniproject/avni-server#825 | do away with org_id
1 parent a523ad3 commit 43064f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rwb/src/main/resources/select_inactive_users_id.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ WITH primary_users as (
2626
and organisation_id = (select id from organisation where db_user = :org_db_user)
2727
and not encounter_type.is_voided)
2828
and (e.is_voided is null or e.is_voided = false)
29-
and wo.organisation_id = :org_id
29+
and wo.organisation_id = (select id from organisation where db_user = :org_db_user)
3030
group by 1, 2
3131
having count(e.id) = 1),
3232
catchments_without_work_orders_or_atleast_one_open_work_order as (

0 commit comments

Comments
 (0)