Send localEndpoints on sites to olm

This commit is contained in:
Owen
2026-07-16 10:47:24 -04:00
parent 7f9c760380
commit 903e8c0fa1
4 changed files with 22 additions and 24 deletions
@@ -133,7 +133,9 @@ export const handleNewtRegisterMessage: MessageHandler = async (context) => {
pubKey: publicKey,
exitNodeId: exitNodeId,
subnet: newSubnet,
localEndpoints: localEndpoints || null
localEndpoints: localEndpoints
? JSON.stringify(localEndpoints)
: null
})
.where(eq(sites.siteId, siteId))
.returning();
@@ -142,7 +144,9 @@ export const handleNewtRegisterMessage: MessageHandler = async (context) => {
.update(sites)
.set({
pubKey: publicKey,
localEndpoints: localEndpoints || null
localEndpoints: localEndpoints
? JSON.stringify(localEndpoints)
: null
})
.where(eq(sites.siteId, siteId))
.returning();