fix: check for invalid go timestamp on expiry again

This commit is contained in:
Aarnav Tale
2025-05-23 11:05:15 -04:00
parent 0276a500c7
commit 769674ab07
+3 -1
View File
@@ -1,4 +1,4 @@
import { HostInfo, Machine, Route } from '~/types';
import { HostInfo, Machine } from '~/types';
export interface PopulatedNode extends Machine {
routes: string[];
@@ -44,6 +44,8 @@ export function mapNodes(
hostInfo: stats?.[node.nodeKey],
customRouting,
expired:
node.expiry === '0001-01-01 00:00:00' ||
node.expiry === '0001-01-01T00:00:00Z' ||
node.expiry === null
? false
: new Date(node.expiry).getTime() < Date.now(),