trigger for other backup choices

This commit is contained in:
Jen 2017-08-17 16:24:56 +02:00 committed by Robin Ward
parent b5823a3b03
commit d29fc781fb
1 changed files with 2 additions and 5 deletions

View File

@ -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