11 lines
490 B
TypeScript
11 lines
490 B
TypeScript
import { Repository } from "typeorm";
|
|
import { AppNotification } from "../entities/notification.entity";
|
|
import { InjectRepository } from "@nestjs/typeorm";
|
|
import { Injectable } from "@nestjs/common";
|
|
|
|
@Injectable()
|
|
export class NotificationRepository extends Repository<AppNotification> {
|
|
constructor(@InjectRepository(AppNotification) notifRepository: Repository<AppNotification>) {
|
|
super(notifRepository.target, notifRepository.manager, notifRepository.queryRunner);
|
|
}
|
|
} |