Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix username caching #99

Merged
merged 2 commits into from
Dec 21, 2017
Merged

Fix username caching #99

merged 2 commits into from
Dec 21, 2017

Conversation

andrewda
Copy link
Member

This will fix an issue where GitHub accounts are not updated
because they do not have a github_updated value.

Related to #93, #97

lib/scrape.js Outdated
@@ -276,7 +276,7 @@ function checkGitHubUserCacheExpired(user) {
}

async function freshenUserGitHubCache(user, existingUser, organization) {
if (!existingUser) {
if (!existingUser || !existingUser.github_updated) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor change - I feel like this would be more elegant with !(existingUser && existingUser.github_updated).

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, works for me.

This will fix an issue where GitHub accounts are not updated
because they do not have a github_updated value.

Related to coala#93, coala#97
@blazeu blazeu merged commit 98bc601 into coala:master Dec 21, 2017
@andrewda andrewda deleted the fix-cache branch December 21, 2017 10:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

3 participants