mirror of
https://github.com/immich-app/immich.git
synced 2025-11-10 20:32:42 +09:00
fix(server): album statistics endpoint (#11924)
This commit is contained in:
@@ -268,7 +268,7 @@ export type CreateAlbumDto = {
|
||||
assetIds?: string[];
|
||||
description?: string;
|
||||
};
|
||||
export type AlbumCountResponseDto = {
|
||||
export type AlbumStatisticsResponseDto = {
|
||||
notShared: number;
|
||||
owned: number;
|
||||
shared: number;
|
||||
@@ -1369,11 +1369,11 @@ export function createAlbum({ createAlbumDto }: {
|
||||
body: createAlbumDto
|
||||
})));
|
||||
}
|
||||
export function getAlbumCount(opts?: Oazapfts.RequestOpts) {
|
||||
export function getAlbumStatistics(opts?: Oazapfts.RequestOpts) {
|
||||
return oazapfts.ok(oazapfts.fetchJson<{
|
||||
status: 200;
|
||||
data: AlbumCountResponseDto;
|
||||
}>("/albums/count", {
|
||||
data: AlbumStatisticsResponseDto;
|
||||
}>("/albums/statistics", {
|
||||
...opts
|
||||
}));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user