diff --git a/src/media/media-upload.entity.ts b/src/media/media-upload.entity.ts index a396fb9f5..7a6d71e13 100644 --- a/src/media/media-upload.entity.ts +++ b/src/media/media-upload.entity.ts @@ -68,7 +68,6 @@ export class MediaUpload { user: User, extension: string, backendType: BackendType, - backendData: BackendData | null, fileUrl: string, ): Omit { const upload = new MediaUpload(); @@ -76,7 +75,7 @@ export class MediaUpload { upload.note = note; upload.user = user; upload.backendType = backendType; - upload.backendData = backendData; + upload.backendData = null; upload.fileUrl = fileUrl; return upload; } diff --git a/src/media/media.service.ts b/src/media/media.service.ts index 20d00c4cc..df8004aca 100644 --- a/src/media/media.service.ts +++ b/src/media/media.service.ts @@ -99,9 +99,9 @@ export class MediaService { user, fileTypeResult.ext, this.mediaBackendType, - backendData, url, ); + mediaUpload.backendData = backendData; await this.mediaUploadRepository.save(mediaUpload); return url; }