mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-25 22:36:38 +00:00
Basic relay working!
This commit is contained in:
@@ -10,7 +10,6 @@ import config from "@server/lib/config";
|
||||
|
||||
const inputSchema = z.object({
|
||||
publicKey: z.string(),
|
||||
endpoint: z.string()
|
||||
});
|
||||
|
||||
type Input = z.infer<typeof inputSchema>;
|
||||
@@ -42,7 +41,7 @@ export const handleGetConfigMessage: MessageHandler = async (context) => {
|
||||
return;
|
||||
}
|
||||
|
||||
const { publicKey, endpoint } = message.data as Input;
|
||||
const { publicKey } = message.data as Input;
|
||||
|
||||
const siteId = newt.siteId;
|
||||
|
||||
@@ -66,7 +65,6 @@ export const handleGetConfigMessage: MessageHandler = async (context) => {
|
||||
.update(sites)
|
||||
.set({
|
||||
publicKey,
|
||||
// endpoint,
|
||||
address,
|
||||
listenPort
|
||||
})
|
||||
@@ -82,7 +80,6 @@ export const handleGetConfigMessage: MessageHandler = async (context) => {
|
||||
.update(sites)
|
||||
.set({
|
||||
publicKey
|
||||
// endpoint
|
||||
})
|
||||
.where(eq(sites.siteId, siteId))
|
||||
.returning();
|
||||
|
||||
Reference in New Issue
Block a user