Skip to content

Commit

Permalink
Fix bugs in location
Browse files Browse the repository at this point in the history
  • Loading branch information
vigneshhari committed Jan 30, 2025
1 parent b52a239 commit d39dc30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions care/emr/api/viewsets/location.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def organizations_add(self, request, *args, **kwargs):
return Response(FacilityOrganizationReadSpec.serialize(organization).to_json())

@extend_schema(
request=FacilityLocationOrganizationManageSpec, responses={204: None}
request=FacilityLocationOrganizationManageSpec, responses={200: None}
)
@action(detail=True, methods=["POST"])
def organizations_remove(self, request, *args, **kwargs):
Expand All @@ -195,7 +195,7 @@ def organizations_remove(self, request, *args, **kwargs):
).delete()
instance.save() # Recalculate Metadata
instance.cascade_changes() # Recalculate Metadata for children as well.
return Response({}, status=204)
return Response({}, status=200)

class FacilityLocationEncounterAssignSpec(BaseModel):
encounter: UUID4
Expand Down

0 comments on commit d39dc30

Please sign in to comment.