mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-04-14 16:44:27 +00: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
17b442aff1
commit
e7c9a214df
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ export class MediaUpload {
|
|||
id: string;
|
||||
|
||||
@ManyToOne((_) => Note, (note) => note.mediaUploads, {
|
||||
nullable: false,
|
||||
nullable: true,
|
||||
})
|
||||
note: Note;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue