mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
chore(server): remove unused code (#9746)
This commit is contained in:
parent
d5cf8e4bfe
commit
9e71256191
8 changed files with 17 additions and 89 deletions
|
|
@ -215,8 +215,11 @@ export class LibraryService {
|
|||
}
|
||||
|
||||
async getStatistics(id: string): Promise<LibraryStatsResponseDto> {
|
||||
await this.findOrFail(id);
|
||||
return this.repository.getStatistics(id);
|
||||
const statistics = await this.repository.getStatistics(id);
|
||||
if (!statistics) {
|
||||
throw new BadRequestException('Library not found');
|
||||
}
|
||||
return statistics;
|
||||
}
|
||||
|
||||
async get(id: string): Promise<LibraryResponseDto> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue