Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
CynthiaKamau committed Mar 1, 2021
1 parent da5c099 commit c15f342
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/Http/Controllers/API/BroadcastsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public function get_facility_broadcast_history($id)

public function get_partner_broadcast_history($id)
{
$hcws = PartnerFacility::where('partner_id',$id)->pluck('facility_id');
$hcws = PartnerFacility::where('partner_id',$id)->pluck('facility_id')->first();

Log::info("HCWs:". $hcws);

Expand Down
2 changes: 1 addition & 1 deletion app/Http/Controllers/API/ResourcesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ public function get_partner_protocols($id)

Log::info("HCWs:". $hcws);

return new GenericCollection(FacilityProtocol::where('facility_id',$hcws)->paginate(20));
return new GenericCollection(FacilityProtocol::where('facility_id', '=',$hcws)->paginate(20));
}

public function get_hcw_partner_protocols()
Expand Down
4 changes: 2 additions & 2 deletions app/Http/Controllers/API/UserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public function get_facility_admin($id)
if (is_null($facility))
abort(404, "Facility does not exist");

return new GenericCollection(FacilityAdmin::where('facility_id', $id)->paginate(10));
return new GenericCollection(FacilityAdmin::where('facility_id', '=', $id)->paginate(10));
}

public function get_partner_users($id)
Expand All @@ -91,7 +91,7 @@ public function get_partner_users($id)
if (is_null($partner))
abort(404, "Partner does not exist");

return new GenericCollection(PartnerUser::where('partner_id', $id)->paginate(100));
return new GenericCollection(PartnerUser::where('partner_id', '=', $id)->paginate(100));
}


Expand Down

0 comments on commit c15f342

Please sign in to comment.