summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/api/runners.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/api/runners.rb b/lib/api/runners.rb
index 03803ede9fc..0c158745124 100644
--- a/lib/api/runners.rb
+++ b/lib/api/runners.rb
@@ -51,7 +51,7 @@ module API
attrs = attributes_for_keys [:description, :active, :tag_list]
if runner.update(attrs)
- present runner, with: Entities::RunnerDetails
+ present runner, with: Entities::RunnerDetails, current_user: current_user
else
render_validation_error!(runner)
end
@@ -68,7 +68,7 @@ module API
authenticate_delete_runner!(runner)
runner.destroy!
- present runner, with: Entities::RunnerDetails
+ present runner, with: Entities::Runner
end
end