update_profile-
All checks were successful
Deploy to core / deploy (push) Successful in 1m37s

This commit is contained in:
2024-02-03 17:44:28 +03:00
parent 2008345e69
commit 33193b2345
4 changed files with 6 additions and 6 deletions

View File

@@ -70,9 +70,9 @@ async def author_followings(author_id: int):
}
@mutation.field('update_profile')
@mutation.field('update_author')
@login_required
async def update_profile(_, info, profile):
async def update_author(_, info, profile):
user_id = info.context['user_id']
with local_session() as session:
author = session.query(Author).where(Author.user == user_id).first()