chore(server): remove unused code (#9746)

This commit is contained in:
Jason Rasmussen 2024-05-25 06:15:07 -04:00 committed by GitHub
parent d5cf8e4bfe
commit 9e71256191
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 17 additions and 89 deletions

View file

@ -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> {