community-author-fix-2
All checks were successful
deploy / deploy (push) Successful in 1m26s

This commit is contained in:
Untone 2023-12-17 09:23:15 +03:00
parent af4c1efd1c
commit a79f3cd5ec

View File

@ -2,7 +2,7 @@ from typing import List
from sqlalchemy import select
from orm.community import Community, CommunityAuthor as CommunityFollower
from orm.community import Community, CommunityAuthor
from orm.reaction import Reaction
from orm.shout import Shout
from orm.topic import Topic, TopicFollower
@ -103,8 +103,8 @@ async def get_my_followed(_, info):
topics_query = select(Topic).join(TopicFollower).where(TopicFollower.follower == author.id)
communities_query = (
select(Community)
.join(CommunityFollower, CommunityFollower.author == Author.id)
.where(CommunityFollower.follower == author.id)
.join(CommunityAuthor, CommunityAuthor.author == Author.id)
.where(CommunityAuthor.author == author.id)
)
topics = []
authors = []