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:
Philip Molares 2021-04-01 01:17:09 +02:00 committed by David Mehren
parent e2469eb441
commit 41765ac300
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3

View file

@ -24,7 +24,7 @@ export class MediaUpload {
id: string;
@ManyToOne((_) => Note, (note) => note.mediaUploads, {
nullable: false,
nullable: true,
})
note: Note;