Refresh GitHub<->Slack user mapping every 24 hours

This commit is contained in:
Pedro Pombeiro 2018-03-28 18:08:00 +02:00
parent ffca465ccc
commit d40681a426
No known key found for this signature in database
GPG Key ID: A65DEB11E4BBC647
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ class GitHubSlackIdMapper {
this.buildPromise = new Promise((resolve, reject) => internalBuild(this.robot, this.cache).then(resolve).catch(reject))
// Refresh cache every day
setTimeout(() => internalBuild(this.robot, this.cache), 24 * 60 * 60 * 1000)
setInterval(() => internalBuild(this.robot, this.cache), 24 * 60 * 60 * 1000)
}
async getGitHubIdFromSlackId (slackUserId, cache) {