Skip to content

Commit

Permalink
fix: add missing return statement and include pageUrl in response
Browse files Browse the repository at this point in the history
  • Loading branch information
supersonictw committed Nov 14, 2024
1 parent e772aac commit 2cb446b
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/rooms.js
Original file line number Diff line number Diff line change
@@ -139,6 +139,7 @@ router.patch(
send({
error: "Invalid pairing hash",
});
return;
}

// Check if the room already exists
@@ -185,7 +186,6 @@ router.patch(
...roomData,
administrators: [userId],
code: pairingCode,
pageUrl,
});

// Save room
1 change: 1 addition & 0 deletions src/utils/openchat.js
Original file line number Diff line number Diff line change
@@ -89,6 +89,7 @@ async function parseTicketPage(pageUrl, isFlush = false) {
members,
description,
backgroundImage,
pageUrl,
};
}

0 comments on commit 2cb446b

Please sign in to comment.