import { Injectable } from '@nestjs/common' ; import { AchievementRepository } from '../repository/achievement.repository' ; import { User } from '../../UserModule/entity/user.entity' ; import { BadgeWithQuantityDTO } from '../dto/badge-with-quantity.dto' ; @ Injectable ( ) export class AchievementService { constructor ( private readonly repository ) { } findBadgesWithQuantityByUser ( user ) { return this . repository . findBadgesCountByUserId ( user . id ) ; } }