From a7f163009eaaaec1ba3500cfc5f092aa9ab56c0e Mon Sep 17 00:00:00 2001 From: Untone Date: Tue, 30 Apr 2024 12:35:51 +0300 Subject: [PATCH] fastify-load-authors-2 --- CHANGELOG.txt | 3 +++ pyproject.toml | 2 +- resolvers/author.py | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 75cd42a8..0f14c14b 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -1,3 +1,6 @@ +[0.3.4] +- load_authors_by from cache + [0.3.3] - feat: sentry integration enabled with glitchtip - fix: reindex on update shout diff --git a/pyproject.toml b/pyproject.toml index a50b4ceb..aab99a75 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "core" -version = "0.3.3" +version = "0.3.4" description = "core module for discours.io" authors = ["discoursio devteam"] license = "MIT" diff --git a/resolvers/author.py b/resolvers/author.py index a605644d..5cf6e0fe 100644 --- a/resolvers/author.py +++ b/resolvers/author.py @@ -122,7 +122,7 @@ async def get_author_id(_, _info, user: str): @query.field("load_authors_by") -def load_authors_by(_, _info, by, limit, offset): +async def load_authors_by(_, _info, by, limit, offset): logger.debug(f"loading authors by {by}") q = select(Author) if by.get("slug"):