feat: added notification repository
This commit is contained in:
@@ -0,0 +1,11 @@
|
|||||||
|
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);
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user