Skip to content

Commit

Permalink
return null for resolveroom
Browse files Browse the repository at this point in the history
  • Loading branch information
howardchung committed Dec 31, 2024
1 parent 37059b9 commit a7ca4f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -382,8 +382,8 @@ app.get('/resolveRoom/:vanity', async (req, res) => {
[vanity?.toLowerCase() ?? ''],
);
// console.log(vanity, result.rows);
// We also use this for checking name availability, so just return empty response if it doesn't exist (http 200)
res.json(result?.rows[0]);
// We also use this for checking name availability, so just return null if it doesn't exist (http 200)
res.json(result?.rows[0] ?? null);
});

app.get('/roomData/:roomId', async (req, res) => {
Expand Down

0 comments on commit a7ca4f2

Please sign in to comment.