mirror of
https://github.com/benjamin-wilson/public-pool.git
synced 2026-09-29 17:15:03 -07:00
data rework
This commit is contained in:
@@ -20,12 +20,8 @@ export class ClientController {
|
||||
|
||||
const workers = await this.clientService.getByAddress(address);
|
||||
|
||||
const chartData = await this.clientStatisticsService.getChartDataForAddress(address);
|
||||
|
||||
const addressSettings = await this.addressSettingsService.getSettings(address);
|
||||
|
||||
|
||||
|
||||
return {
|
||||
bestDifficulty: addressSettings?.bestDifficulty,
|
||||
workersCount: workers.length,
|
||||
@@ -39,11 +35,16 @@ export class ClientController {
|
||||
startTime: worker.startTime
|
||||
};
|
||||
})
|
||||
),
|
||||
chartData
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@Get(':address/chart')
|
||||
async getClientInfoChart(@Param('address') address: string) {
|
||||
const chartData = await this.clientStatisticsService.getChartDataForAddress(address);
|
||||
return chartData;
|
||||
}
|
||||
|
||||
@Get(':address/:workerName')
|
||||
async getWorkerGroupInfo(@Param('address') address: string, @Param('workerName') workerName: string) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user