From b5823a3b037a357a0f0eb03289bc41f726c9fe1b Mon Sep 17 00:00:00 2001 From: Jen Date: Thu, 17 Aug 2017 15:44:00 +0200 Subject: [PATCH] add event for other backup choices --- app/models/backup.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/models/backup.rb b/app/models/backup.rb index 72a619a06c8..02a9e6e398c 100644 --- a/app/models/backup.rb +++ b/app/models/backup.rb @@ -30,7 +30,11 @@ class Backup end def after_create_hook - upload_to_s3 if SiteSetting.enable_s3_backups? + if SiteSetting.enable_s3_backups? + upload_to_s3 + else + DiscourseEvent.trigger(:backup_choice) + end end def after_remove_hook