Update api.js
This commit is contained in:
parent
1b835bfb40
commit
a00a9f0449
|
@ -62,7 +62,7 @@ class API {
|
||||||
return this.call({
|
return this.call({
|
||||||
method: 'get',
|
method: 'get',
|
||||||
path: '/wireguard/client',
|
path: '/wireguard/client',
|
||||||
}).then(clients => clients.map(client => ({
|
}).then((clients) => clients.map((client) => ({
|
||||||
...client,
|
...client,
|
||||||
createdAt: new Date(client.createdAt),
|
createdAt: new Date(client.createdAt),
|
||||||
updatedAt: new Date(client.updatedAt),
|
updatedAt: new Date(client.updatedAt),
|
||||||
|
|
Loading…
Reference in New Issue