From 88a2eb5ddec27a4cfe2340436d9a9da739a71587 Mon Sep 17 00:00:00 2001 From: Mohammad Amin Date: Mon, 4 Nov 2024 14:34:52 +0330 Subject: [PATCH] feat: code cleanup! --- utils/persist_payload.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/utils/persist_payload.py b/utils/persist_payload.py index 3f8065c..3abc11c 100644 --- a/utils/persist_payload.py +++ b/utils/persist_payload.py @@ -78,9 +78,7 @@ def persist_http(self, payload: HTTPPayload, update: bool = False) -> None: {"taskId": payload.taskId}, { "$set": { - "communityId": payload.communityId, - "question": payload.question.model_dump(), - "response": payload.response.model_dump(), + **payload.model_dump(), "updatedAt": datetime.now().replace(tzinfo=timezone.utc), } },