Add: request_id on result

This commit is contained in:
dx-tan 2023-12-22 14:57:41 +07:00
parent 640c7504c4
commit 9e570b8275

View File

@ -273,6 +273,7 @@ class CtelViewSet(viewsets.ViewSet):
if serializer.data[0]["data"].get("status", 200) != 200:
continue
serializer.data[0]["request_id"] = rq_id
return Response(status=status.HTTP_200_OK, data=serializer.data[0])
raise ServiceTimeoutException(excArgs=f"{rq_id}")