We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53622d6 commit 9aa99deCopy full SHA for 9aa99de
lib/travis/api/v3/log_token.rb
@@ -11,7 +11,7 @@ def self.create(job, user_id)
11
repo_can_write = !!job.repository.users.where(id: user_id, permissions: { push: true }).first
12
13
token = SecureRandom.urlsafe_base64(16)
14
- redis.hset("l:#{token}", :job_id, job_id)
+ redis.hset("l:#{token}", :job_id, job.id)
15
redis.hset("l:#{token}", :repo_can_write, repo_can_write)
16
redis.expire("l:#{token}", 1.day)
17
token
0 commit comments