From e7c9a214dfbb2ede82fee432dbb5da442afb5ac7 Mon Sep 17 00:00:00 2001 From: Philip Molares Date: Thu, 1 Apr 2021 01:17:09 +0200 Subject: [PATCH] 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 --- src/media/media-upload.entity.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/media/media-upload.entity.ts b/src/media/media-upload.entity.ts index d25094d3b..341ad52ad 100644 --- a/src/media/media-upload.entity.ts +++ b/src/media/media-upload.entity.ts @@ -24,7 +24,7 @@ export class MediaUpload { id: string; @ManyToOne((_) => Note, (note) => note.mediaUploads, { - nullable: false, + nullable: true, }) note: Note;