Handle types in handlers

This commit is contained in:
Owen
2025-02-21 12:17:56 -05:00
parent 346f2db5fb
commit bec303821b
3 changed files with 28 additions and 15 deletions

View File

@@ -2,6 +2,7 @@ import db from "@server/db";
import { MessageHandler } from "../ws";
import {
exitNodes,
Newt,
resources,
sites,
Target,
@@ -13,8 +14,7 @@ import logger from "@server/logger";
export const handleNewtRegisterMessage: MessageHandler = async (context) => {
const { message, client, sendToClient } = context;
const newt = client;
const newt = client as Newt;
logger.info("Handling register newt message!");