修复博客实体与评论关系错误

This commit is contained in:
2025-06-23 09:14:28 +08:00
parent 2b4d7e0aa6
commit dafdfb5459

View File

@@ -45,6 +45,6 @@ export class Blog {
password_hash: string | null; password_hash: string | null;
// 关系 // 关系
@OneToMany(() => BlogComment, (blog) => blog.id) @OneToMany(() => BlogComment, (comment) => comment.blog)
comments: BlogComment[]; comments: BlogComment[];
} }