mirror of
https://github.com/NovaOSS/nova-api.git
synced 2024-11-25 21:13:57 +01:00
Merge branch 'NovaOSS:main' into main
This commit is contained in:
commit
d233ae0c93
|
@ -26,7 +26,7 @@ app.include_router(core.router)
|
|||
async def startup_event():
|
||||
# DATABASE FIX https://stackoverflow.com/questions/65970988/python-mongodb-motor-objectid-object-is-not-iterable-error-while-trying-to-f
|
||||
import pydantic, bson
|
||||
pydantic.json.ENCODERS_BY_TYPE[bson.objectid.ObjectId]=str
|
||||
# pydantic.json.ENCODERS_BY_TYPE[bson.objectid.ObjectId]=str
|
||||
|
||||
@app.get('/')
|
||||
async def root():
|
||||
|
|
Loading…
Reference in a new issue