refactor: changed the project structure
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
import { Injectable } from '@nestjs/common';
|
||||
import { Repository } from 'typeorm';
|
||||
import { Complaint } from '../entities/complaint.entity';
|
||||
import { InjectRepository } from '@nestjs/typeorm';
|
||||
|
||||
@Injectable()
|
||||
export class ComplaintRepository extends Repository<Complaint> {
|
||||
constructor(
|
||||
@InjectRepository(Complaint) complaintRepository: ComplaintRepository,
|
||||
) {
|
||||
super(
|
||||
complaintRepository.target,
|
||||
complaintRepository.manager,
|
||||
complaintRepository.queryRunner,
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user