mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-12-01 18:15:00 -05:00
MediaUpload: Make note nullable
As it is possible to delete a note without also deleting the associated media uploads this needs to changed in the media upload entity, too. Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
parent
e2469eb441
commit
41765ac300
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ export class MediaUpload {
|
||||||
id: string;
|
id: string;
|
||||||
|
|
||||||
@ManyToOne((_) => Note, (note) => note.mediaUploads, {
|
@ManyToOne((_) => Note, (note) => note.mediaUploads, {
|
||||||
nullable: false,
|
nullable: true,
|
||||||
})
|
})
|
||||||
note: Note;
|
note: Note;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue