From 88b08882bffbe1f5231c63780d592608874b204a Mon Sep 17 00:00:00 2001 From: tonyrewin Date: Sat, 1 Oct 2022 13:28:55 +0300 Subject: [PATCH] coroutine-fix --- resolvers/zine.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resolvers/zine.py b/resolvers/zine.py index ccacb435..faea6d8b 100644 --- a/resolvers/zine.py +++ b/resolvers/zine.py @@ -121,7 +121,7 @@ async def get_search_results(_, _info, searchtext, offset, limit): async def shouts_by_authors(_, _info, slugs, offset, limit): shouts = [] for author in slugs: - shouts.extend(ShoutsCache.get_by_author(author)) + shouts.extend(await ShoutsCache.get_by_author(author)) shouts_prepared = [] for s in shouts: if bool(s.publishedAt): @@ -136,7 +136,7 @@ async def shouts_by_authors(_, _info, slugs, offset, limit): async def shouts_by_topics(_, _info, slugs, offset, limit): shouts = [] for topic in slugs: - shouts.extend(ShoutsCache.get_by_topic(topic)) + shouts.extend(await ShoutsCache.get_by_topic(topic)) shouts_prepared = [] for s in shouts: if bool(s.publishedAt):