mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-01-14 15:43:27 +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;
|
backendType: string;
|
||||||
|
|
||||||
|
@Column()
|
||||||
|
fileUrl: string;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
})
|
})
|
||||||
|
|
|
@ -100,6 +100,7 @@ export class MediaService {
|
||||||
mediaUpload.id,
|
mediaUpload.id,
|
||||||
);
|
);
|
||||||
mediaUpload.backendData = backendData;
|
mediaUpload.backendData = backendData;
|
||||||
|
mediaUpload.fileUrl = url;
|
||||||
await this.mediaUploadRepository.save(mediaUpload);
|
await this.mediaUploadRepository.save(mediaUpload);
|
||||||
return url;
|
return url;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue