1
0
mirror of https://github.com/immich-app/immich.git synced 2025-06-17 03:47:45 +02:00

fix(server): album statistics endpoint (#11924)

This commit is contained in:
Jason Rasmussen
2024-08-20 07:50:36 -04:00
committed by GitHub
parent cde0458dc8
commit ef9a06be5c
14 changed files with 111 additions and 111 deletions

View File

@ -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
}));
}