mirror of
https://github.com/immich-app/immich
synced 2025-10-17 18:19:27 +00:00
fix(server): album statistics endpoint (#11924)
This commit is contained in:
parent
cde0458dc8
commit
ef9a06be5c
14 changed files with 111 additions and 111 deletions
|
|
@ -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
|
||||
}));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue