Skip to content

Commit

Permalink
Move 204 to 200 because DO does not like 204's
Browse files Browse the repository at this point in the history
  • Loading branch information
vigneshhari committed Jan 30, 2025
1 parent d39dc30 commit c6e3020
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion care/emr/api/viewsets/encounter.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ def organizations_remove(self, request, *args, **kwargs):
EncounterOrganization.objects.filter(
encounter=instance, organization=organization
).delete()
return Response({}, status=status.HTTP_204_NO_CONTENT)
return Response({})

def _check_discharge_summary_access(self, encounter):
if not AuthorizationController.call(
Expand Down
2 changes: 1 addition & 1 deletion care/emr/api/viewsets/location.py
Original file line number Diff line number Diff line change
Expand Up @@ -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=200)
return Response({})

class FacilityLocationEncounterAssignSpec(BaseModel):
encounter: UUID4
Expand Down

0 comments on commit c6e3020

Please sign in to comment.