This commit is contained in:
2023-10-03 19:41:10 +03:00
parent a8e32ad28c
commit 9344c137f7
2 changed files with 3 additions and 3 deletions

View File

@@ -55,7 +55,7 @@ async def check_auth(req):
return is_authenticated, user_id
def author_id_by_user_id(user_id):
async def author_id_by_user_id(user_id):
async with local_session() as session:
author = session(Author).where(Author.user == user_id).first()
return author.id