sayan404 / TaskPulse

an application that helps people to register and track there work
https://taskpulse.onrender.com
MIT License
7 stars 11 forks source link

User notification system complete, notifications objects will be crea… #41

Closed nishantdecode closed 9 months ago

nishantdecode commented 9 months ago

Files and folders created:

  1. Notifications/NotificationCronJob.js - a node cron scheduler which finds task approaching due date and make a notification object in database by userId.
  2. Models/NotificationModel.js - model for notification objects contains - message, date, userId.
  3. Controllers/NotificationController.js - getUserNotifications created which responds with all notifications of user by userId, and deletes them from database.
  4. Routes/NotificationRoute.js - add the route: api/v1/notification/:userId

Files modified:

  1. Models/TaskModel.js - added field UserId, changed type of field dueDate to Date, changed structure of file due to errors