From f3b97e0fd46735ad730eb437d9126668f89cd65c Mon Sep 17 00:00:00 2001 From: Andrew Date: Wed, 20 Dec 2017 18:33:08 +0000 Subject: [PATCH] Fix username caching This will fix an issue where GitHub accounts are not updated because they do not have a github_updated value. Related to https://github.com/coala/gci-leaders/issues/93, https://github.com/coala/gci-leaders/issues/97 --- lib/scrape.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/scrape.js b/lib/scrape.js index 1d34eb5..e8d7d6d 100644 --- a/lib/scrape.js +++ b/lib/scrape.js @@ -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(),