From ee263887520680832dc1c33651ac79507b860a61 Mon Sep 17 00:00:00 2001 From: tonyrewin Date: Mon, 31 Oct 2022 13:43:28 +0200 Subject: [PATCH] fix --- resolvers/profile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resolvers/profile.py b/resolvers/profile.py index 7015bce3..4ff7f811 100644 --- a/resolvers/profile.py +++ b/resolvers/profile.py @@ -198,7 +198,7 @@ def author_unfollow(user, slug): @query.field("authorsAll") async def get_authors_all(_, _info): authors = await UserStorage.get_all_users() - authorslugs = await ShoutsCache.by_author.keys() + authorslugs = ShoutsCache.by_author.keys() authors = filter(lambda a: a.emailConfirmed and a.slug in authorslugs, authors) for author in authors: author.stat = await get_author_stat(author.slug)