Skip to content

Commit 0e17834

Browse files
FIX (monitoring): Fix text of down and up messages to not be the same in heading and body
1 parent 0acd205 commit 0e17834

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

backend/internal/features/healthcheck/attempt/check_pg_health_uc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ func (uc *CheckPgHealthUseCase) sendDbStatusNotification(
224224
messageBody := ""
225225

226226
if newHealthStatus == databases.HealthStatusAvailable {
227-
messageTitle = fmt.Sprintf("✅ [%s] DB is back online", database.Name)
227+
messageTitle = fmt.Sprintf("✅ [%s] DB is online", database.Name)
228228
messageBody = fmt.Sprintf("✅ [%s] DB is back online", database.Name)
229229
} else {
230230
messageTitle = fmt.Sprintf("❌ [%s] DB is unavailable", database.Name)

backend/internal/features/healthcheck/attempt/check_pg_health_uc_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ func Test_CheckPgHealthUseCase(t *testing.T) {
303303
t,
304304
"SendNotification",
305305
mock.Anything,
306-
fmt.Sprintf("✅ [%s] DB is back online", database.Name),
306+
fmt.Sprintf("✅ [%s] DB is online", database.Name),
307307
fmt.Sprintf("✅ [%s] DB is back online", database.Name),
308308
)
309309
})

0 commit comments

Comments
 (0)