Skip to content

Commit

Permalink
Merge pull request #2342 from coronasafe/staging
Browse files Browse the repository at this point in the history
Production release v24.32.1
  • Loading branch information
gigincg authored Aug 6, 2024
2 parents ecb353c + 64e065f commit 6486d13
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"]

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 6486d13

Please sign in to comment.