update user serializer fix
This commit is contained in:
8
entrypoint.sh
Executable file
8
entrypoint.sh
Executable file
@@ -0,0 +1,8 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
export $(grep -v '^#' .env | xargs -d '\n')
|
||||||
|
# tail -f /dev/null
|
||||||
|
# python -m debugpy --wait-for-client --listen 0.0.0.0:5678 -m uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload
|
||||||
|
|
||||||
|
python -m uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload
|
||||||
|
|
||||||
@@ -46,6 +46,7 @@ class User(Base):
|
|||||||
except Exception:
|
except Exception:
|
||||||
await db.rollback()
|
await db.rollback()
|
||||||
raise
|
raise
|
||||||
|
return await cls.get(id)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
async def get(cls, id):
|
async def get(cls, id):
|
||||||
|
|||||||
Reference in New Issue
Block a user