@@ -489,13 +489,13 @@ func (c *StoreReconciler) notifyPrebuildFailureLimitReached(ctx context.Context,
489489return nil
490490}
491491
492- // Send notification to template admins (7-day cooldown)
492+ // Send notification to template admins
493493err := c .notifyTemplateAdmins (ctx ,ps )
494494if err != nil {
495495return xerrors .Errorf ("notify template admins: %w" ,err )
496496}
497497
498- // Send notification to template version author (1-day cooldown)
498+ // Send notification to template version author
499499err = c .notifyTemplateAuthor (ctx ,ps )
500500if err != nil {
501501return xerrors .Errorf ("notify template author: %w" ,err )
@@ -505,13 +505,13 @@ func (c *StoreReconciler) notifyPrebuildFailureLimitReached(ctx context.Context,
505505}
506506
507507func (c * StoreReconciler )notifyTemplateAdmins (ctx context.Context ,ps prebuilds.PresetSnapshot )error {
508- // Check7-day cooldown for admin notifications
508+ // Check cooldown for admin notifications
509509cooldown ,err := c .store .GetTemplatePrebuildNotificationCooldown (ctx , database.GetTemplatePrebuildNotificationCooldownParams {
510510TemplateID :ps .Preset .TemplateID ,
511511NotificationType :NotificationTypeAdmin ,
512512})
513513if err == nil {
514- // Cooldown exists, check if7 days have passed
514+ // Cooldown exists, check ifit has passed
515515if c .clock .Since (cooldown .LastNotificationSent )< AdminNotificationCooldown {
516516return nil // Still in cooldown
517517}
@@ -551,13 +551,13 @@ func (c *StoreReconciler) notifyTemplateAdmins(ctx context.Context, ps prebuilds
551551}
552552
553553func (c * StoreReconciler )notifyTemplateAuthor (ctx context.Context ,ps prebuilds.PresetSnapshot )error {
554- // Check1-day cooldown for author notifications
554+ // Check cooldown for author notifications
555555cooldown ,err := c .store .GetTemplatePrebuildNotificationCooldown (ctx , database.GetTemplatePrebuildNotificationCooldownParams {
556556TemplateID :ps .Preset .TemplateID ,
557557NotificationType :NotificationTypeAuthor ,
558558})
559559if err == nil {
560- // Cooldown exists, check if1 day has passed
560+ // Cooldown exists, check ifit has passed
561561if c .clock .Since (cooldown .LastNotificationSent )< AuthorNotificationCooldown {
562562return nil // Still in cooldown
563563}