From 9e570b827516a219e18d9d80cffcc93f2971795c Mon Sep 17 00:00:00 2001 From: dx-tan Date: Fri, 22 Dec 2023 14:57:41 +0700 Subject: [PATCH] Add: request_id on result --- cope2n-api/fwd_api/api/ctel_view.py | 1 + 1 file changed, 1 insertion(+) diff --git a/cope2n-api/fwd_api/api/ctel_view.py b/cope2n-api/fwd_api/api/ctel_view.py index 27f0847..2ef48b6 100755 --- a/cope2n-api/fwd_api/api/ctel_view.py +++ b/cope2n-api/fwd_api/api/ctel_view.py @@ -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}")