14 lines
507 B
TypeScript
14 lines
507 B
TypeScript
import { Injectable } from "@nestjs/common";
|
|
import { InjectRepository } from "@nestjs/typeorm";
|
|
import { Repository } from "typeorm";
|
|
import { TMTaskComment } from "../entities/task-comment.entity";
|
|
|
|
@Injectable()
|
|
export class TaskCommentRepository extends Repository<TMTaskComment> {
|
|
constructor(
|
|
@InjectRepository(TMTaskComment) taskCommentRepository: Repository<TMTaskComment>,
|
|
) {
|
|
super(taskCommentRepository.target, taskCommentRepository.manager, taskCommentRepository.queryRunner);
|
|
}
|
|
}
|