mirror of
https://github.com/ANewProfile/breadcrumbs.git
synced 2026-09-23 07:19:56 +02:00
5 lines
172 B
Python
5 lines
172 B
Python
def serialize(doc: dict) -> dict:
|
|
doc["id"] = str(doc.pop("_id"))
|
|
doc.pop("user_id", None) # internal ownership field, not part of the API response
|
|
return doc
|