trigger for other backup choices
This commit is contained in:
parent
b5823a3b03
commit
d29fc781fb
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue