Skip to content

Commit

Permalink
Fix username caching
Browse files Browse the repository at this point in the history
This will fix an issue where GitHub accounts are not updated
because they do not have a github_updated value.

Related to #93, #97
  • Loading branch information
andrewda committed Dec 20, 2017
1 parent 5174e2f commit f3b97e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/scrape.js
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ function checkGitHubUserCacheExpired(user) {
}

async function freshenUserGitHubCache(user, existingUser, organization) {
if (!existingUser) {
if (!(existingUser && existingUser.github_updated)) {
return {
login: await findGitHubUser(user.display_name, organization),
updated: Date.now(),
Expand Down

0 comments on commit f3b97e0

Please sign in to comment.