mirror of
https://github.com/benjamin-wilson/public-pool.git
synced 2026-09-29 09:05:06 -07:00
dates
This commit is contained in:
@@ -59,7 +59,10 @@ export class ClientStatisticsService {
|
||||
|
||||
|
||||
|
||||
return result;
|
||||
return result.map(res => {
|
||||
res.label = new Date(res).toISOString();
|
||||
return res;
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
@@ -108,6 +111,11 @@ export class ClientStatisticsService {
|
||||
|
||||
const result = await this.clientStatisticsRepository.query(query, [address]);
|
||||
|
||||
return result.map(res => {
|
||||
res.label = new Date(res).toISOString();
|
||||
return res;
|
||||
});
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -156,6 +164,11 @@ export class ClientStatisticsService {
|
||||
|
||||
const result = await this.clientStatisticsRepository.query(query, [address, clientName]);
|
||||
|
||||
return result.map(res => {
|
||||
res.label = new Date(res).toISOString();
|
||||
return res;
|
||||
});
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -205,6 +218,11 @@ export class ClientStatisticsService {
|
||||
|
||||
const result = await this.clientStatisticsRepository.query(query, [address, clientName, sessionId]);
|
||||
|
||||
return result.map(res => {
|
||||
res.label = new Date(res).toISOString();
|
||||
return res;
|
||||
});
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user