Skip to content

Commit 9aa99de

Browse files
committed
Fix
1 parent 53622d6 commit 9aa99de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/travis/api/v3/log_token.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def self.create(job, user_id)
1111
repo_can_write = !!job.repository.users.where(id: user_id, permissions: { push: true }).first
1212

1313
token = SecureRandom.urlsafe_base64(16)
14-
redis.hset("l:#{token}", :job_id, job_id)
14+
redis.hset("l:#{token}", :job_id, job.id)
1515
redis.hset("l:#{token}", :repo_can_write, repo_can_write)
1616
redis.expire("l:#{token}", 1.day)
1717
token

0 commit comments

Comments
 (0)