mirror of
https://github.com/discourse/discourse.git
synced 2025-06-05 14:07:30 +08:00
trigger for other backup choices
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user