Skip to content

Commit

Permalink
fix query
Browse files Browse the repository at this point in the history
  • Loading branch information
howardchung committed Feb 9, 2024
1 parent d60997c commit 214bda0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/room.ts
Original file line number Diff line number Diff line change
Expand Up @@ -906,7 +906,7 @@ export class Room {
// check if the user already has a VM already in postgres
if (postgres) {
const { rows } = await postgres.query(
'SELECT count(1) from vbrowser WHERE uid = ?',
'SELECT count(1) from vbrowser WHERE uid = $1',
[decoded.uid],
);
if (rows[0].count >= 2) {
Expand Down

0 comments on commit 214bda0

Please sign in to comment.