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

Commit

Permalink
GH-501 providing the correct where query and update username
Browse files Browse the repository at this point in the history
  • Loading branch information
Ferit Topcu committed Feb 27, 2019
1 parent d051413 commit 83090e4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions server/handler/CheckHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,10 @@ export class CheckHandler {
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 },
return await Check.update({ token: token, created_by: userName },
{
where: {
repositoryId: repoId,
created_by: userName
repositoryId: repoId
},
returning: true
});
Expand Down

0 comments on commit 83090e4

Please sign in to comment.