add test case

This commit is contained in:
2025-05-27 18:52:17 +08:00
parent a6dcfce339
commit f5cf346dd1
5 changed files with 77 additions and 108 deletions
@@ -57,7 +57,10 @@ export class CommentService {
parent,
post: await this.getPost(data.post),
});
return this.repository.findOneOrFail({ where: { id: item.id } });
return this.repository.findOneOrFail({
where: { id: item.id },
relations: ['parent', 'children', 'post'],
});
}
async delete(id: string) {