import Notification from '../infra/typeorm/schemas/Notification' ; import INotificationsRepository from '../repositories/INotificationsRepository' ; import { inject , injectable } from 'tsyringe' ; @ injectable ( ) class ShowProjectService { constructor ( @ inject ( 'NotificationsRepository' ) private notificationsRepository ) { } public async execute ( user ) { return await this . notificationsRepository . findUserNotifications ( user ) ; } } export default ShowProjectService ;