Skip to content

Commit e31efbf

Browse files
ShahzaibAwanShahzaibAwan
authored andcommitted
Use user instead of current user
1 parent d5e701e commit e31efbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/travis/api/v3/queries/build.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def find
1515
def cancel(user, build_id)
1616
raise BuildNotCancelable if %w(passed failed canceled errored).include? find.state
1717

18-
payload = { id: build_id, user_id: user.id, source: 'api', reason: "Build Cancelled manually by User with id: #{current_user.login}" }
18+
payload = { id: build_id, user_id: user.id, source: 'api', reason: "Build Cancelled manually by User with id: #{user.login}" }
1919
service = Travis::Enqueue::Services::CancelModel.new(user, { build_id: build_id })
2020
service.push("build:cancel", payload)
2121
payload

0 commit comments

Comments
 (0)