Carry the cover id through the archive queries

This commit is contained in:
Matthias G
2026-08-01 12:29:36 +02:00
parent 2fd71fd406
commit 4dc6534dc5
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -106,6 +106,7 @@ const selection = {
audience: posts.audience,
publishAt: posts.publishAt,
authorName: posts.authorName,
coverMediaId: posts.coverMediaId,
number: sql<number>`coalesce(${posts.number}, 0)`.as('number'),
projectSlug: projects.slug,
projectName: projects.name,
+1
View File
@@ -32,6 +32,7 @@ export async function listUnread(args: UnreadArgs): Promise<PostListItem[]> {
audience: posts.audience,
publishAt: posts.publishAt,
authorName: posts.authorName,
coverMediaId: posts.coverMediaId,
number: sql<number>`coalesce(${posts.number}, 0)`.as('number'),
projectSlug: projects.slug,
projectName: projects.name,