We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e93ec9e commit 7bb697fCopy full SHA for 7bb697f
backend/message_listener.py
@@ -95,6 +95,15 @@ async def callback(message: AbstractIncomingMessage):
95
96
if "event_type" in msg and msg["event_type"] == "file_indexed":
97
logger.info(f"This is an event type file indexed!")
98
+ msg = json.loads(message.body.decode("utf-8"))
99
+
100
+ # Convert string IDs back to PydanticObjectId if needed
101
+ file_data = msg.get("file_data", {})
102
+ if "id" in file_data and isinstance(file_data["id"], str):
103
+ file_data["id"] = PydanticObjectId(file_data["id"])
104
105
+ # Now you can create your FileOut object
106
+ # file_out = FileOut(**file_data)
107
# TODO - process file indexed event here
108
else:
109
job_id = msg["job_id"]
0 commit comments