From cd0ba884626f38ab8204f576338d091c1d1701c6 Mon Sep 17 00:00:00 2001 From: Untone Date: Sat, 16 Dec 2023 20:03:00 +0300 Subject: [PATCH] comminity-author-link-name-fix --- orm/community.py | 2 +- schemas/core.graphql | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/orm/community.py b/orm/community.py index b549725b..09fa8359 100644 --- a/orm/community.py +++ b/orm/community.py @@ -11,7 +11,7 @@ class CommunityAuthor(Base): __tablename__ = "community_author" id = None # type: ignore - follower = Column(ForeignKey("author.id"), primary_key=True) + author = Column(ForeignKey("author.id"), primary_key=True) community = Column(ForeignKey("community.id"), primary_key=True) joined_at = Column(Integer, nullable=False, default=lambda: int(time.time())) role = Column(String, nullable=False) diff --git a/schemas/core.graphql b/schemas/core.graphql index bc128bb7..7907d37d 100644 --- a/schemas/core.graphql +++ b/schemas/core.graphql @@ -77,8 +77,9 @@ type Author { last_seen: Int updated_at: Int deleted_at: Int - # ratings - stat: AuthorStat # synthetic + # synthetic + stat: AuthorStat # ratings inside + communities: [Community] } type ReactionUpdating {