chore: remove unused album repository methods (#12758)

This commit is contained in:
Jason Rasmussen
2024-09-17 17:02:11 -04:00
committed by GitHub
parent 1e6ef5c9e4
commit efe45fd0aa
12 changed files with 1 additions and 251 deletions

View File

@@ -52,11 +52,7 @@ export class AlbumService {
}
async getAll({ user: { id: ownerId } }: AuthDto, { assetId, shared }: GetAlbumsDto): Promise<AlbumResponseDto[]> {
const invalidAlbumIds = await this.albumRepository.getInvalidThumbnail();
for (const albumId of invalidAlbumIds) {
const newThumbnail = await this.assetRepository.getFirstAssetForAlbumId(albumId);
await this.albumRepository.update({ id: albumId, albumThumbnailAsset: newThumbnail });
}
await this.albumRepository.updateThumbnails();
let albums: AlbumEntity[];
if (assetId) {