remove debug logging

This commit is contained in:
not-nullptr 2024-03-22 14:55:27 +00:00
parent 52de1dbb15
commit fcd165e990

View file

@ -18,7 +18,6 @@ export async function GET({ request }) {
export async function POST({ request, getClientAddress }) {
// TODO: per-ip room limit
const body: IRoom = await request.json();
console.log(body, request.headers);
/* description may contain "### END DESCRIPTION ###" on its own line. if it does, get all lines after that */
const parsedDescription = body.description?.split("### END DESCRIPTION ###");
const description = parsedDescription?.slice(1)?.join("### END DESCRIPTION ###") || "";
@ -42,7 +41,6 @@ export async function POST({ request, getClientAddress }) {
if (!token) return new Response(null, { status: 401 });
// TODO: jwt utils which type and validate automatically
const user = await useAuth(token);
console.log(user);
if (!user) return new Response(null, { status: 401 });
const borkedIp = getClientAddress();
const room = RoomManager.createRoom({