add room logging
This commit is contained in:
parent
db626df718
commit
4edc443fdb
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,6 @@ export async function POST({ request, getClientAddress }) {
|
|||
const user = await useAuth(token);
|
||||
console.log(user);
|
||||
if (!user) return new Response(null, { status: 401 });
|
||||
console.log(body, getClientAddress());
|
||||
const room = RoomManager.createRoom({
|
||||
name: body.name,
|
||||
description: parsedDescription[0] || "",
|
||||
|
@ -62,5 +61,6 @@ export async function POST({ request, getClientAddress }) {
|
|||
host: user,
|
||||
hasPassword: body.hasPassword || false,
|
||||
});
|
||||
console.log("Room added:", JSON.stringify(room, null, 2));
|
||||
return json(room.toJSON());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue