import { Injectable } from '@nestjs/common'; import { UsersRepository } from './users.repository'; @Injectable() export class UsersService { constructor(private readonly usersRepository: UsersRepository) {} async getProfile(userId: string) { return this.usersRepository.findProfileByUserId(userId); } async updateProfile(userId: string, dto: any) { return this.usersRepository.updateProfile(userId, dto); } async updatePreferences(userId: string, dto: any) { return this.usersRepository.updatePreferences(userId, dto); } }