trigger for other backup choices
This commit is contained in:
parent
b5823a3b03
commit
d29fc781fb
|
@ -30,11 +30,8 @@ class Backup
|
||||||
end
|
end
|
||||||
|
|
||||||
def after_create_hook
|
def after_create_hook
|
||||||
if SiteSetting.enable_s3_backups?
|
upload_to_s3 if SiteSetting.enable_s3_backups?
|
||||||
upload_to_s3
|
DiscourseEvent.trigger(:backup_created)
|
||||||
else
|
|
||||||
DiscourseEvent.trigger(:backup_choice)
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def after_remove_hook
|
def after_remove_hook
|
||||||
|
|
Loading…
Reference in New Issue