import { Injectable } from '@nestjs/common' ; import { Hero } from '../models/hero.model' ; import { userHero } from './fixtures/user' ; @ Injectable ( ) export class HeroRepository { async findOneById ( id ) { return userHero ; } async findAll ( ) { return [ userHero ] ; } }