Restore DB-backed connected miner hashrate

This commit is contained in:
Ben
2026-06-20 15:27:33 -04:00
parent c3ad01a38f
commit cd0cb9bfe0
7 changed files with 124 additions and 0 deletions
@@ -62,6 +62,9 @@ export class UserAgentReportService {
private async buildLiveReport() {
const presences = await this.redisMessagingService.getAllClientPresence();
const activePresences = await this.filterActivePresences(presences);
if (activePresences.length === 0) {
return await this.userAgentReport.find();
}
const rows = new Map<string, {
userAgent: string;
count: number;