mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-27 12:08:02 -05:00
NoteEntity: Enable eager loading and cascades for tags
Signed-off-by: David Mehren <git@herrmehren.de> Co-authored-by: Yannick Bungers <git@innay.de>
This commit is contained in:
parent
b349d25bd7
commit
943c8b4bab
1 changed files with 1 additions and 0 deletions
|
@ -74,6 +74,7 @@ export class Note {
|
|||
@ManyToMany(
|
||||
_ => Tag,
|
||||
tag => tag.notes,
|
||||
{ eager: true, cascade: true },
|
||||
)
|
||||
@JoinTable()
|
||||
tags: Tag[];
|
||||
|
|
Loading…
Reference in a new issue