File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/main/kotlin/net/leanix/githubagent/services Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -24,10 +24,10 @@ class GitHubScanningService(
24
24
runCatching {
25
25
val jwtToken = cachingService.get(" jwtToken" ) ? : throw JwtTokenNotFound ()
26
26
val installations = getInstallations(jwtToken.toString())
27
- fetchAndBroadcastOrganisationsData (installations)
27
+ fetchAndSendOrganisationsData (installations)
28
28
installations.forEach { installation ->
29
29
logger.info(" Fetching repositories for organisation ${installation.account.login} " )
30
- fetchAndBroadcastRepositoriesData (installation)
30
+ fetchAndSendRepositoriesData (installation)
31
31
}
32
32
}.onFailure {
33
33
logger.error(" Error while scanning GitHub resources" )
@@ -51,7 +51,7 @@ class GitHubScanningService(
51
51
}
52
52
}
53
53
54
- private fun fetchAndBroadcastOrganisationsData (
54
+ private fun fetchAndSendOrganisationsData (
55
55
installations : List <Installation >
56
56
) {
57
57
val installationToken = cachingService.get(" installationToken:${installations.first().id} " )
@@ -67,7 +67,7 @@ class GitHubScanningService(
67
67
webSocketService.sendMessage(WS_ORGANIZATIONS_TOPIC , organizations)
68
68
}
69
69
70
- private fun fetchAndBroadcastRepositoriesData (installation : Installation ) {
70
+ private fun fetchAndSendRepositoriesData (installation : Installation ) {
71
71
val installationToken = cachingService.get(" installationToken:${installation.id} " ).toString()
72
72
var cursor: String? = null
73
73
var totalRepos = 0
You can’t perform that action at this time.
0 commit comments