Skip to content

Conversation

@adityapat24
Copy link
Contributor

ℹ️ Issue

Closes #171

📝 Description

Added functionality so that when grants are created, notifications for those grants are created for 2 weeks, one week, and 3 days. Also, when grants are updated, the notifications are also adjusted

Briefly list the changes made to the code:

  1. Created helper functions in grant service that calls on the backend notification post route to create the notifications and update them when update grants route is called
  2. Added a new notification that takes in a notification id as a parameter and edits it based on the given updates
  3. Tested helper functions and new route in grant.service.spec and noticiation.service.spec

✔️ Verification

Wrote and ran tests to ensure that all unit tests passed

🏕️ (Optional) Future Work / Notes

Some edges may need to be considered (creating a grant on same day its due so there is no real purpose in creating notifications)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DEV - create notifications when a grant is created + edit notification backend route

2 participants