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

Description

Scheduled backend job that queries for certificates expiring within 30 days and dispatches push notifications to affected peer mentors and their coordinators via the Push Notification Gateway. Also updates the active status on the organization's public-facing listing when a certificate expires, satisfying HLF's hard operational requirement.

Feature: Digital Peer Mentor Certificate

certificate-expiry-scheduler

Responsibilities

  • Query certifications table for records expiring within 30 days
  • Dispatch renewal push notifications to peer mentors and coordinators
  • Mark expired certificates and remove peer mentors from public listings
  • Log expiry events for audit trail

Interfaces

runExpiryCheck(): ExpiryCheckResult
notifyExpiringCertificates(certifications: Certificate[]): void
deactivateExpiredCertificates(): number