diff --git a/ee/drift/controllers/notifications.go b/ee/drift/controllers/notifications.go index dbe401311..aa5fea914 100644 --- a/ee/drift/controllers/notifications.go +++ b/ee/drift/controllers/notifications.go @@ -52,6 +52,13 @@ func sendTestSlackWebhook(webhookURL string) error { }, }, {"type": "divider"}, + { + "type": "section", + "fields": []map[string]string{ + {"type": "mrkdwn", "text": ":arrow_right: *Note: This is a test notification*pwd"}, + }, + }, + {"type": "divider"}, }, } diff --git a/next/controllers/drift.go b/next/controllers/drift.go index 642e080d2..833bd412b 100644 --- a/next/controllers/drift.go +++ b/next/controllers/drift.go @@ -119,7 +119,7 @@ func (d DiggerController) TriggerCronForMatchingProjects(c *gin.Context) { // TODO: think about pubsub pattern or parallelised calls for _, proj := range driftEnabledProjects { - matches, err := utils.MatchesCrontab(proj.DriftCrontab, time.Now(), time.Minute) + matches, err := utils.MatchesCrontab(proj.DriftCrontab, time.Now()) if err != nil { log.Printf("could not check for matching crontab for project %v, %v", proj.ID, err) // TODO: send metrics here