(auth: AuthDto)
| 25 | } |
| 26 | |
| 27 | async restore(auth: AuthDto): Promise<TrashResponseDto> { |
| 28 | const count = await this.trashRepository.restore(auth.user.id); |
| 29 | if (count > 0) { |
| 30 | this.logger.log(`Restored ${count} asset(s) from trash`); |
| 31 | } |
| 32 | return { count }; |
| 33 | } |
| 34 | |
| 35 | async empty(auth: AuthDto): Promise<TrashResponseDto> { |
| 36 | const count = await this.trashRepository.empty(auth.user.id); |
no test coverage detected