Skip to content

PostgreSQL backup tool with Point-In-Time-Recovery and restore verification

FIX (notifications): Fix not sent notifications on completed backup

Rostislav Dugin22091c4c87e2
diff --git a/backend/internal/features/backups/backups/service.go b/backend/internal/features/backups/backups/service.go
index 8b676342..5966a737 100644
--- a/backend/internal/features/backups/backups/service.go
+++ b/backend/internal/features/backups/backups/service.go
@@ -242,7 +242,7 @@ func (s *BackupService) MakeBackup(databaseID uuid.UUID, isLastTry bool) {
)
}
- if !isLastTry {
+ if backup.Status != BackupStatusCompleted && !isLastTry {
return
}