webhook-fix
All checks were successful
deploy / deploy (push) Successful in 9s

This commit is contained in:
2023-11-28 22:13:53 +03:00
parent 0c2af2bdf4
commit 269c0e449f
2 changed files with 6 additions and 3 deletions

View File

@@ -241,9 +241,9 @@ async def rate_author(_, info, rated_slug, value):
return {}
async def create_author(data):
async def create_author(user_id: str, slug: str):
with local_session() as session:
# TODO: check Authorization header
new_author = Author(**data)
new_author = Author(user=user_id, slug=slug)
session.add(new_author)
session.commit()