From d29fc781fbb744c07f67eabb89d39289f98db46a Mon Sep 17 00:00:00 2001 From: Jen Date: Thu, 17 Aug 2017 16:24:56 +0200 Subject: [PATCH] trigger for other backup choices --- app/models/backup.rb | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/app/models/backup.rb b/app/models/backup.rb index 02a9e6e398c..38dd0b2a83e 100644 --- a/app/models/backup.rb +++ b/app/models/backup.rb @@ -30,11 +30,8 @@ class Backup end def after_create_hook - if SiteSetting.enable_s3_backups? - upload_to_s3 - else - DiscourseEvent.trigger(:backup_choice) - end + upload_to_s3 if SiteSetting.enable_s3_backups? + DiscourseEvent.trigger(:backup_created) end def after_remove_hook