summaryrefslogtreecommitdiff
path: root/app/workers/concerns/worker_context.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/workers/concerns/worker_context.rb')
-rw-r--r--app/workers/concerns/worker_context.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/workers/concerns/worker_context.rb b/app/workers/concerns/worker_context.rb
index f2ff3ecfb6b..6acb9acceeb 100644
--- a/app/workers/concerns/worker_context.rb
+++ b/app/workers/concerns/worker_context.rb
@@ -5,7 +5,7 @@ module WorkerContext
class_methods do
def worker_context(attributes)
- @worker_context = Gitlab::ApplicationContext.new(attributes)
+ @worker_context = Gitlab::ApplicationContext.new(**attributes)
end
def get_worker_context
@@ -60,6 +60,6 @@ module WorkerContext
end
def with_context(context, &block)
- Gitlab::ApplicationContext.new(context).use { yield(**context) }
+ Gitlab::ApplicationContext.new(**context).use { yield(**context) }
end
end