Refresh GitHub<->Slack user mapping every 24 hours
This commit is contained in:
parent
ffca465ccc
commit
d40681a426
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue