From 4d9930a4ff346c835646ef7831074e8cd2ccb471 Mon Sep 17 00:00:00 2001 From: tonyrewin Date: Wed, 16 Nov 2022 18:27:01 +0300 Subject: [PATCH] loadby-author-fix --- src/pages/author/[slug]/index.astro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/author/[slug]/index.astro b/src/pages/author/[slug]/index.astro index 8340e51d..efcd8ffd 100644 --- a/src/pages/author/[slug]/index.astro +++ b/src/pages/author/[slug]/index.astro @@ -6,7 +6,7 @@ import { initRouter } from '../../../stores/router' import { PRERENDERED_ARTICLES_COUNT } from '../../../components/Views/Author' const slug = Astro.params.slug.toString() -const shouts = await apiClient.loadShoutsBy({ by: { authors: [slug] } , limit: PRERENDERED_ARTICLES_COUNT }) +const shouts = await apiClient.loadShoutsBy({ by: { author: slug } , limit: PRERENDERED_ARTICLES_COUNT }) const author = await apiClient.loadAuthorsBy({ by: { slug } }) const { pathname, search } = Astro.url