Merge pull request #2006 from namazso/patch-1

Fix statistics misreporting register allow state
This commit is contained in:
TheFrenchGhosty 2021-04-10 17:02:17 +00:00 committed by GitHub
commit 42be1321b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -42,7 +42,7 @@ class Invidious::Jobs::StatisticsRefreshJob < Invidious::Jobs::BaseJob
"version" => @software_config["version"],
"branch" => @software_config["branch"],
}
STATISTICS["openRegistration"] = CONFIG.registration_enabled
STATISTICS["openRegistrations"] = CONFIG.registration_enabled
end
private def refresh_stats