Skip to content

Commit

Permalink
Merge pull request #2341 from coronasafe/develop
Browse files Browse the repository at this point in the history
Staging release v24.32.1
  • Loading branch information
gigincg authored Aug 6, 2024
2 parents c9a6e30 + 763043a commit 64e065f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions care/abdm/api/viewsets/health_facility.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@

@shared_task
def register_health_facility_as_service(facility_external_id):
if settings.ENABLE_ABDM:
return [False, "ABDM Services are currently disabled"]

Check warning on line 26 in care/abdm/api/viewsets/health_facility.py

View check run for this annotation

Codecov / codecov/patch

care/abdm/api/viewsets/health_facility.py#L26

Added line #L26 was not covered by tests

health_facility = HealthFacility.objects.filter(
facility__external_id=facility_external_id
).first()
Expand Down
2 changes: 1 addition & 1 deletion care/facility/api/serializers/patient_consultation.py
Original file line number Diff line number Diff line change
Expand Up @@ -799,7 +799,7 @@ def update(self, instance: PatientConsultation, validated_data):
ConsultationBed.objects.filter(
consultation=self.instance, end_date__isnull=True
).update(end_date=now())
if patient.abha_number:
if settings.ENABLE_ABDM and patient.abha_number:
abha_number = patient.abha_number
try:
AbdmGateway().fetch_modes(
Expand Down

0 comments on commit 64e065f

Please sign in to comment.