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):