Skip to content

Commit bbc1931

Browse files
authored
Merge pull request #1755 from diggerhq/fix/driftapp-build
fix test notification and next build
2 parents 66478de + ca824f5 commit bbc1931

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

ee/drift/controllers/notifications.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,13 @@ func sendTestSlackWebhook(webhookURL string) error {
5252
},
5353
},
5454
{"type": "divider"},
55+
{
56+
"type": "section",
57+
"fields": []map[string]string{
58+
{"type": "mrkdwn", "text": ":arrow_right: *Note: This is a test notification*pwd"},
59+
},
60+
},
61+
{"type": "divider"},
5562
},
5663
}
5764

next/controllers/drift.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ func (d DiggerController) TriggerCronForMatchingProjects(c *gin.Context) {
119119

120120
// TODO: think about pubsub pattern or parallelised calls
121121
for _, proj := range driftEnabledProjects {
122-
matches, err := utils.MatchesCrontab(proj.DriftCrontab, time.Now(), time.Minute)
122+
matches, err := utils.MatchesCrontab(proj.DriftCrontab, time.Now())
123123
if err != nil {
124124
log.Printf("could not check for matching crontab for project %v, %v", proj.ID, err)
125125
// TODO: send metrics here

0 commit comments

Comments
 (0)