Count only working clients in miner report

This commit is contained in:
Ben
2026-06-20 23:54:40 -04:00
parent bed275fe7b
commit bc8eba3c49
3 changed files with 22 additions and 0 deletions
@@ -55,6 +55,7 @@ describe('UserAgentReportService', () => {
'client.updatedAt > :activeSince',
expect.objectContaining({ activeSince: expect.any(Date) }),
);
expect(clientRepository.queryBuilder.andWhere).toHaveBeenCalledWith('client.hashRate > 0');
});
it('falls back to the materialized view when no active database clients exist', async () => {