@punks/backend-entity-manager 0.0.215 → 0.0.216

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cjs/index.js CHANGED
@@ -21280,7 +21280,12 @@ exports.MediaLibraryService = class MediaLibraryService {
21280
21280
  }
21281
21281
  async mediaUpload(input) {
21282
21282
  const reference = await this.defaultMediaProvider.mediaUpload(input);
21283
- await this.mediaReferenceRepository.createReference(reference, input.folderId);
21283
+ await this.mediaReferenceRepository.createReference({
21284
+ media: reference,
21285
+ fileName: input.fileName,
21286
+ contentType: input.contentType,
21287
+ folderId: input.folderId,
21288
+ });
21284
21289
  return reference;
21285
21290
  }
21286
21291
  async mediaDelete(input) {