feat: add upcoming seasons sync and notification for sequels

This commit is contained in:
2026-04-08 13:35:44 +02:00
parent 437ec70d8c
commit 3b45500b7b
11 changed files with 625 additions and 85 deletions

View File

@@ -328,5 +328,12 @@ func (h *Handler) HandleNotifications(w http.ResponseWriter, r *http.Request) {
return
}
templates.Notifications(watching).Render(r.Context(), w)
upcomingSeasons, err := h.svc.GetUpcomingSeasons(r.Context(), userID)
if err != nil {
log.Printf("upcoming seasons error: %v", err)
http.Error(w, "Failed to fetch upcoming seasons", http.StatusInternalServerError)
return
}
templates.Notifications(watching, upcomingSeasons).Render(r.Context(), w)
}