Skip to content

Commit

Permalink
changed response data in link_via_qr
Browse files Browse the repository at this point in the history
  • Loading branch information
khavinshankar committed Jul 19, 2023
1 parent ff1c300 commit 869966c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion care/abdm/api/viewsets/healthid.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,10 @@ def link_via_qr(self, request):
patient.save()

abha_serialized = AbhaNumberSerializer(abha_number).data
return Response(abha_serialized, status=status.HTTP_200_OK)
return Response(
{"id": abha_serialized["external_id"], "abha_profile": abha_serialized},
status=status.HTTP_200_OK,
)

@swagger_auto_schema(
operation_id="get_new_linking_token",
Expand Down

0 comments on commit 869966c

Please sign in to comment.