mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-12-26 15:31:24 +00:00
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:
parent
3dd4bf1582
commit
c64ca9c012
2 changed files with 4 additions and 0 deletions
|
@ -34,6 +34,9 @@ export class MediaUpload {
|
|||
})
|
||||
backendType: string;
|
||||
|
||||
@Column()
|
||||
fileUrl: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
})
|
||||
|
|
|
@ -100,6 +100,7 @@ export class MediaService {
|
|||
mediaUpload.id,
|
||||
);
|
||||
mediaUpload.backendData = backendData;
|
||||
mediaUpload.fileUrl = url;
|
||||
await this.mediaUploadRepository.save(mediaUpload);
|
||||
return url;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue