Always set exit node to online

Fixes #1692
This commit is contained in:
Owen
2025-10-19 10:47:32 -07:00
parent 346183a23f
commit d9fe5a8819
2 changed files with 5 additions and 2 deletions

View File

@@ -65,10 +65,12 @@ export async function createExitNode(
[exitNode] = await db
.update(exitNodes)
.set({
reachableAt
reachableAt,
online: true
})
.where(eq(exitNodes.exitNodeId, exitNodeQuery.exitNodeId))
.returning();
logger.info(`Updated exit node reachableAt to ${reachableAt}`);
}

View File

@@ -47,7 +47,8 @@ export async function createExitNode(publicKey: string, reachableAt: string | un
.update(exitNodes)
.set({
reachableAt,
publicKey
publicKey,
online: true
})
.where(eq(exitNodes.publicKey, publicKey))
.returning();