Skip to content

Commit dd740ef

Browse files
committed
fix: stats should be set to 0
1 parent b7fb6b3 commit dd740ef

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

backend/src/services/integrationService.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2195,14 +2195,11 @@ export default class IntegrationService {
21952195
this.options.log.debug(
21962196
`Evaluating cache for repos: ${repos.map((r) => r.name).join(',')} and segments: ${segments}`,
21972197
)
2198-
// cachedStats = await IntegrationProgressRepository.getDbStatsForGithub({
2199-
// repos,
2200-
// segments,
2201-
// })
2198+
cachedStats = await IntegrationProgressRepository.getDbStatsForGithub()
22022199

2203-
// this.options.log.debug(`Caching data: ${JSON.stringify(cachedStats)}`)
2200+
this.options.log.debug(`Caching data: ${JSON.stringify(cachedStats)}`)
22042201
// cache for 1 minute
2205-
// await cacheDb.set(key, JSON.stringify(cachedStats), 60)
2202+
await cacheDb.set(key, JSON.stringify(cachedStats), 60)
22062203
} else {
22072204
cachedStats = JSON.parse(cachedStats)
22082205
}

0 commit comments

Comments
 (0)