From d1190f2efcfa9f9b24504638250c0d13bb51f23a Mon Sep 17 00:00:00 2001 From: Alfred-Mutai Date: Fri, 1 Nov 2024 19:46:45 +0300 Subject: [PATCH] Updated child locations to only active locations --- app/facility-mappings/facility-mapping.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/facility-mappings/facility-mapping.js b/app/facility-mappings/facility-mapping.js index f30999606..b660a168a 100644 --- a/app/facility-mappings/facility-mapping.js +++ b/app/facility-mappings/facility-mapping.js @@ -19,7 +19,7 @@ var defs = { return new Promise((resolve, reject) => { let queryParts = {}; let sql = - 'select location_id,name,description,uuid from amrs.location where parent_location = ' + + 'select location_id,name,description,uuid from amrs.location where retired = 0 && parent_location = ' + params.parentId + ''; queryParts = {