refactor: changed the project structure

This commit is contained in:
2026-07-28 20:17:25 +03:30
parent e462606416
commit 2cfda9ca45
65 changed files with 28 additions and 32 deletions
@@ -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);
}
}