This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user