diff --git a/src/server/bin/campaigns_to_correct.txt b/src/server/bin/campaigns_to_correct.txt index 090a166..f9b0b48 100644 --- a/src/server/bin/campaigns_to_correct.txt +++ b/src/server/bin/campaigns_to_correct.txt @@ -2,3 +2,17 @@ pelatihan_region1_indonesia pelatihan_region2_indonesia pelatihan_region3_indonesia pelatihan_region4_indonesia +validation_region1_indonesia +validation_region2_indonesia +validation_region3_indonesia +validation_region4_indonesia +validation_region5_indonesia +validation_region6_indonesia +validation_region7_indonesia +validation_region8_indonesia +validation_region9_indonesia +validation_region10_indonesia +validation_region11_indonesia +validation_region12_indonesia +validation_region13_indonesia +validation_region14_indonesia diff --git a/src/server/bin/correct_campaign.js b/src/server/bin/correct_campaign.js index 4d3c617..3b7fc7c 100644 --- a/src/server/bin/correct_campaign.js +++ b/src/server/bin/correct_campaign.js @@ -1,4 +1,3 @@ -console.log('campaignId', campaignId) db.getCollection('points').find({'campaign': campaignId}).forEach(function(point) { const campaign = db.getCollection('campaign').findOne({_id: point.campaign}) const numInspections = db.getCollection('campaign').distinct('numInspec',{'_id': point.campaign}) @@ -21,4 +20,4 @@ db.getCollection('points').find({'campaign': campaignId}).forEach(function(point print(' Final number of inspections ' + point.underInspection) db.getCollection('points').save(point) } -}) \ No newline at end of file +})