fix: the blog entitiy cascade option
This commit is contained in:
@@ -41,6 +41,7 @@ export class BlogCommentsRepository extends Repository<BlogComment> {
|
||||
const { limit, skip } = PaginationUtils(queryDto);
|
||||
const query = this.createQueryBuilder("blogComment")
|
||||
.leftJoin("blogComment.blog", "blog")
|
||||
.where("blog.deletedAt IS NULL")
|
||||
.addSelect(["blog.id", "blog.title"])
|
||||
.leftJoin("blogComment.user", "user")
|
||||
.addSelect(["user.id", "user.firstName", "user.lastName"]);
|
||||
|
||||
Reference in New Issue
Block a user