mirror of
https://github.com/apotdevin/thunderhub.git
synced 2025-02-22 06:21:37 +01:00
chore: 🔧 parse channel times to seconds
This commit is contained in:
parent
4c74ed1536
commit
66a35fed92
2 changed files with 3 additions and 0 deletions
|
@ -70,6 +70,8 @@ export const getChannels = {
|
|||
|
||||
return {
|
||||
...channel,
|
||||
time_offline: channel.time_offline / 1000,
|
||||
time_online: channel.time_online / 1000,
|
||||
partner_node_info: {
|
||||
...nodeInfo,
|
||||
},
|
||||
|
|
|
@ -15,6 +15,7 @@ export const Channels = () => {
|
|||
const { loading, data } = useGetChannelsQuery({
|
||||
skip: !auth,
|
||||
variables: { auth },
|
||||
errorPolicy: 'all',
|
||||
onError: error => toast.error(getErrorContent(error)),
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue