fix-queru-more
All checks were successful
Deploy to core / deploy (push) Successful in 2m31s

This commit is contained in:
2024-02-21 21:25:23 +03:00
parent 1c04125921
commit 5f4e30866f
2 changed files with 56 additions and 45 deletions

View File

@@ -9,7 +9,7 @@ from orm.author import Author, AuthorFollower, AuthorRating
from orm.reaction import Reaction, ReactionKind
from orm.shout import Shout, ShoutAuthor, ShoutTopic
from orm.topic import Topic
from resolvers.follower import get_follows_by_user_id
from resolvers.follower import query_follows
from resolvers.stat import get_authors_from_query, add_author_stat_columns
from services.auth import login_required
from services.db import local_session
@@ -235,7 +235,7 @@ async def get_author_follows(
.first()
)
if user:
follows = await get_follows_by_user_id(user)
follows = query_follows(user)
return follows
else:
raise ValueError('Author not found')