mirror of
https://github.com/immich-app/immich.git
synced 2026-02-28 09:38:43 +03:00
refactor(web): album service (#23762)
This commit is contained in:
6
web/src/lib/services/album.service.ts
Normal file
6
web/src/lib/services/album.service.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import { downloadArchive } from '$lib/utils/asset-utils';
|
||||
import type { AlbumResponseDto } from '@immich/sdk';
|
||||
|
||||
export const handleDownloadAlbum = async (album: AlbumResponseDto) => {
|
||||
await downloadArchive(`${album.albumName}.zip`, { albumId: album.id });
|
||||
};
|
||||
Reference in New Issue
Block a user