mirror of
https://github.com/benjamin-wilson/public-pool.git
synced 2025-03-18 05:41:43 +01:00
dates
This commit is contained in:
parent
29b1ce6a07
commit
f5dad968f6
@ -60,7 +60,7 @@ export class ClientStatisticsService {
|
||||
|
||||
|
||||
return result.map(res => {
|
||||
res.label = new Date(res).toISOString();
|
||||
res.label = new Date(res.label).toISOString();
|
||||
return res;
|
||||
});
|
||||
|
||||
@ -112,7 +112,7 @@ export class ClientStatisticsService {
|
||||
const result = await this.clientStatisticsRepository.query(query, [address]);
|
||||
|
||||
return result.map(res => {
|
||||
res.label = new Date(res).toISOString();
|
||||
res.label = new Date(res.label).toISOString();
|
||||
return res;
|
||||
});
|
||||
|
||||
@ -165,7 +165,7 @@ export class ClientStatisticsService {
|
||||
const result = await this.clientStatisticsRepository.query(query, [address, clientName]);
|
||||
|
||||
return result.map(res => {
|
||||
res.label = new Date(res).toISOString();
|
||||
res.label = new Date(res.label).toISOString();
|
||||
return res;
|
||||
});
|
||||
|
||||
@ -219,7 +219,7 @@ export class ClientStatisticsService {
|
||||
const result = await this.clientStatisticsRepository.query(query, [address, clientName, sessionId]);
|
||||
|
||||
return result.map(res => {
|
||||
res.label = new Date(res).toISOString();
|
||||
res.label = new Date(res.label).toISOString();
|
||||
return res;
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user