Skip to content

Commit

Permalink
I forgot to add the internal api key in TopggStatsSender
Browse files Browse the repository at this point in the history
  • Loading branch information
WinG4merBR committed Jan 22, 2025
1 parent f33857b commit 40394eb
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ class TopggStatsSender(
clusterUrls.map { url ->
async {
try {
val response = client.get("$url/guilds")
val response = client.get("$url/guilds", {
header("Authorization", "Bearer ${foxy.config.others.internalApi.key}")
})
Json.decodeFromString<ClusterStats>(response.bodyAsText()).serverCount
} catch (e: Exception) {
logger.error(e) { "Failed to fetch server count from $url" }
Expand Down

0 comments on commit 40394eb

Please sign in to comment.