- Cria testes completos para RefreshTokenService (14 testes) - Cria testes completos para TokenBlacklistService (11 testes) - Remove JSDoc do DebService - Adiciona testes para DebService (6 testes) - Corrige query SQL no DebRepository para usar SQL raw em vez de QueryBuilder - Adiciona documentação de cobertura de testes
21 lines
491 B
TypeScript
21 lines
491 B
TypeScript
import { Injectable } from '@nestjs/common';
|
|
import { DebRepository } from '../repositories/deb.repository';
|
|
import { DebDto } from '../dto/DebDto';
|
|
|
|
@Injectable()
|
|
export class DebService {
|
|
constructor(private readonly debRepository: DebRepository) {}
|
|
|
|
async findByCpfCgcent(
|
|
cpfCgcent: string,
|
|
matricula?: number,
|
|
cobranca?: string,
|
|
): Promise<DebDto[]> {
|
|
return await this.debRepository.findByCpfCgcent(
|
|
cpfCgcent,
|
|
matricula,
|
|
cobranca,
|
|
);
|
|
}
|
|
}
|