Add task completion notification trigger

When a task is completed, send push notifications to all residence
users (except the person who completed it). Uses the existing
NotificationService.CreateAndSendNotification method.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Trey t
2025-11-26 23:28:08 -06:00
parent 2b03f03604
commit 5576343175
2 changed files with 68 additions and 3 deletions

View File

@@ -74,6 +74,9 @@ func SetupRouter(deps *Dependencies) *gin.Engine {
contractorService := services.NewContractorService(contractorRepo, residenceRepo)
documentService := services.NewDocumentService(documentRepo, residenceRepo)
notificationService := services.NewNotificationService(notificationRepo, gorushClient)
// Wire up notification service to task service (for task completion notifications)
taskService.SetNotificationService(notificationService)
subscriptionService := services.NewSubscriptionService(subscriptionRepo, residenceRepo, taskRepo, contractorRepo, documentRepo)
// Initialize middleware