import { Injectable } from '@nestjs/common' ; import { UserRepository } from '@notifire/dal' ; import { GetMyProfileCommand } from './get-my-profile.dto' ; @ Injectable ( ) export class GetMyProfileUsecase { constructor ( private readonly userRepository ) { } async execute ( command ) { return await this . userRepository . findById ( command . userId ) ; } }