fix(asset): resolve DTO schema and test typecheck errors for proxyType

This commit is contained in:
yiling
2026-07-20 10:46:20 +08:00
parent f158d04686
commit fea153e94f
4 changed files with 9 additions and 4 deletions
@@ -409,7 +409,8 @@ describe('DatabaseSessionStorage', () => {
name: 'test.png',
type: 'file',
mediaType: 'image/png',
media: { proxyType: 'image' },
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- partial MediaInfo mock for testing
media: { proxyType: 'image' } as any,
projectId: project.id,
status: 'uploaded',
},
@@ -462,7 +463,8 @@ describe('DatabaseSessionStorage', () => {
name: 'test.mp4',
type: 'file',
mediaType: 'video/mp4',
media: { proxyType: 'video' },
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- partial MediaInfo mock for testing
media: { proxyType: 'video' } as any,
projectId: project.id,
status: 'uploaded',
},