feat(api): remove mediaType and mimeType from DTO responses and DB MediaInfo interface

This commit is contained in:
yiling
2026-07-20 14:37:17 +08:00
parent 5d4020dc2d
commit 3afe0fc3c3
19 changed files with 37 additions and 48 deletions
@@ -73,7 +73,6 @@ export async function getMediaInfoActivity(params: {
videoPreview: { width: 0, height: 0 },
finishedAt: new Date().toISOString(),
metadata: null,
mimeType: params.mediaType || '',
original: {
key: '', // Will be filled by caller or updated later
downloadUrl: '',
@@ -428,7 +427,7 @@ export async function generateSpriteActivity(params: GenerateSpriteActivityParam
const posterFile = path.join(tmpDir, 'poster.webp')
try {
if (params.mediaInfo.proxyType === 'pdf' || params.mediaInfo.mimeType === 'application/pdf') {
if (params.mediaInfo.proxyType === 'pdf') {
const pdfRes = await transcodeService.generatePdfSprite(
params.filePath,
spriteFile,