diff --git a/src/modules/notifications/repositories/notification.repository.ts b/src/modules/notifications/repositories/notification.repository.ts new file mode 100644 index 0000000..3ecf58d --- /dev/null +++ b/src/modules/notifications/repositories/notification.repository.ts @@ -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 { + constructor(@InjectRepository(AppNotification) notifRepository: Repository) { + super(notifRepository.target, notifRepository.manager, notifRepository.queryRunner); + } +} \ No newline at end of file