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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user