getTopic, getAuthor fix

This commit is contained in:
Igor Lobanov
2022-11-11 16:32:30 +01:00
parent c38a565b10
commit 96e16f5b5c
2 changed files with 4 additions and 4 deletions

View File

@@ -55,8 +55,8 @@ async def topics_by_author(_, _info, author):
@query.field("getTopic")
async def get_topic(_, _info, slug):
t = await TopicStorage.topics[slug]
t.stat = get_topic_stat(slug)
t = TopicStorage.topics[slug]
t.stat = await get_topic_stat(slug)
return t