Service Layer medium complexity backend
0
Dependencies
0
Dependents
2
Entities
0
Integrations

Description

Supabase scheduled Edge Function that checks all open assignment dispatches for records that have not been acknowledged within 10 days and triggers push notifications to the assigned peer mentor via the Push Notification Gateway. Runs on a daily cron schedule.

Feature: Encrypted Task Assignment to Peer Mentors

assignment-reminder-service

Responsibilities

  • Query assignment_dispatches for records older than 10 days without acknowledgement
  • Compose reminder push notification payload
  • Dispatch push notification via Push Notification Gateway
  • Log reminder events to prevent duplicate notifications within the same window

Interfaces

runDailyReminderCheck()
getUnacknowledgedAssignments(thresholdDays)
sendReminderNotification(mentorId, assignmentId)
logReminderSent(assignmentId, timestamp)

Related Data Entities (2)

Data entities managed by this component