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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user