Skip to content

Commit

Permalink
feat: update ImmichAlbumInterface to return AlbumSimplified in GetAll…
Browse files Browse the repository at this point in the history
…Albums and GetAssetAlbums
  • Loading branch information
simulot committed Mar 9, 2025
1 parent 87fb67e commit 8d565d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions immich/immich.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ type ImmichClientInterface interface {
}

type ImmichAlbumInterface interface {
GetAllAlbums(ctx context.Context) ([]assets.Album, error)
GetAllAlbums(ctx context.Context) ([]AlbumSimplified, error)
GetAlbumInfo(ctx context.Context, id string, withoutAssets bool) (AlbumContent, error)
CreateAlbum(
ctx context.Context,
Expand All @@ -71,7 +71,7 @@ type ImmichAlbumInterface interface {
) (assets.Album, error)

// GetAssetAlbums get all albums that an asset belongs to
GetAssetAlbums(ctx context.Context, assetID string) ([]assets.Album, error)
GetAssetAlbums(ctx context.Context, assetID string) ([]AlbumSimplified, error)
DeleteAlbum(ctx context.Context, id string) error
}
type ImmichTagInterface interface {
Expand Down

0 comments on commit 8d565d4

Please # to comment.