From c64ca9c01224b5f4b802c85968a0908a34048473 Mon Sep 17 00:00:00 2001 From: Philip Molares Date: Fri, 26 Feb 2021 16:12:14 +0100 Subject: [PATCH] MediaUploadEntity: Add fileUrl Save the fileUrl, returned to the user on creation, in the DB. Signed-off-by: Philip Molares --- src/media/media-upload.entity.ts | 3 +++ src/media/media.service.ts | 1 + 2 files changed, 4 insertions(+) diff --git a/src/media/media-upload.entity.ts b/src/media/media-upload.entity.ts index 7cd2d11b5..c9f253278 100644 --- a/src/media/media-upload.entity.ts +++ b/src/media/media-upload.entity.ts @@ -34,6 +34,9 @@ export class MediaUpload { }) backendType: string; + @Column() + fileUrl: string; + @Column({ nullable: true, }) diff --git a/src/media/media.service.ts b/src/media/media.service.ts index 3869c6da6..d6a8c95c8 100644 --- a/src/media/media.service.ts +++ b/src/media/media.service.ts @@ -100,6 +100,7 @@ export class MediaService { mediaUpload.id, ); mediaUpload.backendData = backendData; + mediaUpload.fileUrl = url; await this.mediaUploadRepository.save(mediaUpload); return url; }