feat: card will indicate icons of comments and description (#222)

* feat: card will indicate icons of comments and description

* fix: comments limit to one

* feat: fetch comments for public boards

---------

Co-authored-by: Henry <henry_ball@hotmail.co.uk>
This commit is contained in:
Ridham Khandar
2025-10-24 01:10:04 +05:30
committed by GitHub
parent 4ffc7e3696
commit bb4784fd28
4 changed files with 82 additions and 33 deletions

View File

@@ -10,6 +10,7 @@ import {
cardToWorkspaceMembers,
checklistItems,
checklists,
comments,
labels,
lists,
workspaceMembers,
@@ -215,6 +216,13 @@ export const getByPublicId = async (
},
},
},
comments: {
columns: {
publicId: true,
},
where: isNull(comments.deletedAt),
limit: 1,
},
},
where: and(
cardIds.length > 0 ? inArray(cards.publicId, cardIds) : undefined,
@@ -335,6 +343,13 @@ export const getBySlug = async (
},
},
},
comments: {
columns: {
publicId: true,
},
where: isNull(comments.deletedAt),
limit: 1,
},
checklists: {
columns: {
publicId: true,