Skip to content

Commit

Permalink
backup config mail issue fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Xinecraft committed Jan 11, 2025
1 parent 3e4f41c commit 925b47d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ BACKUP_ENABLED=true
BACKUP_APP_NAME="${APP_NAME}-backup"
BACKUP_DISK=local
BACKUP_ARCHIVE_PASSWORD=null
BACKUP_NOTIFICATION_EMAIL=[email protected]
BACKUP_NOTIFICATION_EMAIL=

# Storage & Cloud Backup(works with cloudflare r2 or s3)
AWS_ACCESS_KEY_ID=
Expand Down
12 changes: 6 additions & 6 deletions config/backup.php
Original file line number Diff line number Diff line change
Expand Up @@ -198,12 +198,12 @@
*/
'notifications' => [
'notifications' => [
\Spatie\Backup\Notifications\Notifications\BackupHasFailedNotification::class => ['mail'],
\Spatie\Backup\Notifications\Notifications\UnhealthyBackupWasFoundNotification::class => ['mail'],
\Spatie\Backup\Notifications\Notifications\CleanupHasFailedNotification::class => ['mail'],
\Spatie\Backup\Notifications\Notifications\BackupWasSuccessfulNotification::class => ['mail'],
\Spatie\Backup\Notifications\Notifications\HealthyBackupWasFoundNotification::class => ['mail'],
\Spatie\Backup\Notifications\Notifications\CleanupWasSuccessfulNotification::class => ['mail'],
\Spatie\Backup\Notifications\Notifications\BackupHasFailedNotification::class => env('BACKUP_NOTIFICATION_EMAIL') ? ['mail'] : [],
\Spatie\Backup\Notifications\Notifications\UnhealthyBackupWasFoundNotification::class => env('BACKUP_NOTIFICATION_EMAIL') ? ['mail'] : [],
\Spatie\Backup\Notifications\Notifications\CleanupHasFailedNotification::class => env('BACKUP_NOTIFICATION_EMAIL') ? ['mail'] : [],
\Spatie\Backup\Notifications\Notifications\BackupWasSuccessfulNotification::class => env("BACKUP_NOTIFICATION_EMAIL") ? ['mail'] : [],
\Spatie\Backup\Notifications\Notifications\HealthyBackupWasFoundNotification::class => env("BACKUP_NOTIFICATION_EMAIL") ? ['mail'] : [],
\Spatie\Backup\Notifications\Notifications\CleanupWasSuccessfulNotification::class => env("BACKUP_NOTIFICATION_EMAIL") ? ['mail'] : [],
],

/*
Expand Down

0 comments on commit 925b47d

Please sign in to comment.