add event for other backup choices

This commit is contained in:
Jen 2017-08-17 15:44:00 +02:00 committed by Robin Ward
parent aea9db56d4
commit b5823a3b03
1 changed files with 5 additions and 1 deletions

View File

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