This commit is contained in:
@@ -21,6 +21,8 @@ export class TaskRepository extends Repository<TMTask> {
|
||||
.leftJoinAndSelect("task.times", "time")
|
||||
.leftJoinAndSelect("task.ticket", "ticket")
|
||||
.leftJoinAndSelect("time.admin", "timeAdmin")
|
||||
.leftJoinAndSelect("task.comments", "comment")
|
||||
.leftJoinAndSelect("comment.user", "commentUser")
|
||||
|
||||
.loadRelationCountAndMap("task.checkListItemCount", "task.checkListItems")
|
||||
|
||||
@@ -59,6 +61,13 @@ export class TaskRepository extends Repository<TMTask> {
|
||||
"timeAdmin.id",
|
||||
"timeAdmin.firstName",
|
||||
"timeAdmin.lastName",
|
||||
|
||||
"comment.id",
|
||||
"comment.content",
|
||||
"comment.createdAt",
|
||||
"commentUser.firstName",
|
||||
"commentUser.lastName",
|
||||
"commentUser.profilePic"
|
||||
])
|
||||
.where("task.id = :taskId", { taskId })
|
||||
|
||||
|
||||
Reference in New Issue
Block a user