mirror of
https://github.com/benjamin-wilson/public-pool.git
synced 2026-09-29 17:15:03 -07:00
Restore DB-backed connected miner hashrate
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user