update user serializer fix

This commit is contained in:
2023-02-28 13:25:26 +03:00
parent 353e68843b
commit 6ebfc7c7d3
2 changed files with 9 additions and 0 deletions

8
entrypoint.sh Executable file
View 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

View File

@@ -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):