Skip to content
This repository has been archived by the owner on Aug 27, 2024. It is now read-only.

Commit

Permalink
GH-501 adding user name update
Browse files Browse the repository at this point in the history
  • Loading branch information
Ferit Topcu committed Feb 27, 2019
1 parent b7a1b98 commit d051413
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server/handler/CheckHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,14 @@ export class CheckHandler {

async onRefreshTokens(repoId, user) {
const token = user.accessToken;
debug(`refreshing token for all checks for repo ${repoId} w/ token ${token ? token.substr(0, 4) : 'NONE'} by user ${user} `)
const userName = user.json.login;
debug(`refreshing token for all checks for repo ${repoId} w/ token ${token ? token.substr(0, 4) : 'NONE'} by user ${userName} `)
try {
return await Check.update({ token: token },
{
where: {
repositoryId: repoId,
created_by: userName
},
returning: true
});
Expand Down

0 comments on commit d051413

Please sign in to comment.