refactor: changed the project structure
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import { Injectable } from "@nestjs/common";
|
||||
import { Repository } from "typeorm";
|
||||
import { ReplyAttachment } from "../entities/reply-attachment.entity";
|
||||
import { InjectRepository } from "@nestjs/typeorm";
|
||||
|
||||
@Injectable()
|
||||
export class ReplyAttachmentRepository extends Repository<ReplyAttachment> {
|
||||
constructor(@InjectRepository(ReplyAttachment) replyAttachmentRepository: Repository<ReplyAttachment>) {
|
||||
super(replyAttachmentRepository.target, replyAttachmentRepository.manager, replyAttachmentRepository.queryRunner);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
import { Repository } from "typeorm";
|
||||
import { Reply } from "../entities/reply.entity";
|
||||
import { InjectRepository } from "@nestjs/typeorm";
|
||||
import { Injectable } from "@nestjs/common";
|
||||
|
||||
@Injectable()
|
||||
export class ReplyRepository extends Repository<Reply> {
|
||||
constructor(@InjectRepository(Reply) replyRepository: Repository<Reply>) {
|
||||
super(replyRepository.target, replyRepository.manager, replyRepository.queryRunner);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user