clean order services

This commit is contained in:
2026-01-27 14:52:55 +03:30
parent 935f905e29
commit e2b065aa2b
9 changed files with 319 additions and 277 deletions
@@ -68,5 +68,12 @@ export class UserService {
return this.userRepository.findAllPaginated(dto)
}
async findOrFail(userId: string) {
const user = await this.findById(userId)
if (!user) {
throw new BadRequestException("User not found!")
}
return user
}
}