Skip to content

Commit

Permalink
VACMS-18380: Adds comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
omahane committed Jun 24, 2024
1 parent bbc0a28 commit bf6ec12
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ public function cleanRevs() {
*/
public function flagMissingFacilities() {
$facilities_in_fapi = $this->getFapiList();
// Make the two-dimensional array one dimension.
$facilities_flat = array_reduce($facilities_in_fapi, function ($carry, $item) {
return array_merge($carry, $item);
}, []);
Expand Down Expand Up @@ -292,6 +293,7 @@ protected function getFapiList(): array {
$facility_migration = Migration::load('va_node_health_care_local_facility');
if ($facility_migration) {
$source = $facility_migration->get('source');
// We can only get a 1000 facilities at a time, so need to loop through.
foreach ($source['urls'] as $url) {
$headers = $source['headers'];
$fetcher = $this->dataFetcherPluginManager->createInstance('http', ['headers' => $headers]);
Expand Down

0 comments on commit bf6ec12

Please sign in to comment.