fix: send filename when viewing the original file (#20005)
* feat: add fileName to downloadOriginal response * test: add fileName to ImmichFileResponse for downloadOriginal * lint: use single quotes for fileName string in test
This commit is contained in:
@@ -505,6 +505,7 @@ describe(AssetMediaService.name, () => {
|
||||
await expect(sut.downloadOriginal(authStub.admin, 'asset-1')).resolves.toEqual(
|
||||
new ImmichFileResponse({
|
||||
path: '/original/path.jpg',
|
||||
fileName: 'asset-id.jpg',
|
||||
contentType: 'image/jpeg',
|
||||
cacheControl: CacheControl.PrivateWithCache,
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user