diff --git a/app/observers/key_observer.rb b/app/observers/key_observer.rb index 28fef55abf9..c013594e787 100644 --- a/app/observers/key_observer.rb +++ b/app/observers/key_observer.rb @@ -1,5 +1,5 @@ class KeyObserver < BaseObserver - def after_save(key) + def after_create(key) GitlabShellWorker.perform_async( :add_key, key.shell_id,