Carry the cover id through the archive queries
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user