MediaUploadEntity: Add fileUrl

Save the fileUrl, returned to the user on creation, in the DB.

Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
Philip Molares 2021-02-26 16:12:14 +01:00 committed by David Mehren
parent 3dd4bf1582
commit c64ca9c012
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3
2 changed files with 4 additions and 0 deletions

View file

@ -34,6 +34,9 @@ export class MediaUpload {
})
backendType: string;
@Column()
fileUrl: string;
@Column({
nullable: true,
})

View file

@ -100,6 +100,7 @@ export class MediaService {
mediaUpload.id,
);
mediaUpload.backendData = backendData;
mediaUpload.fileUrl = url;
await this.mediaUploadRepository.save(mediaUpload);
return url;
}