Skip to content

Commit

Permalink
number comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
howardchung committed Feb 7, 2025
1 parent f514a97 commit c767d2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ io.engine.use(async (req: any, res: Response, next: () => void) => {
const shard = resolveShard(roomId);
const key = '/' + roomId;
// Check to make sure this shard should load this room
const isCorrectShard = !config.SHARD || shard === config.SHARD;
const isCorrectShard = !config.SHARD || shard === Number(config.SHARD);
if (isCorrectShard && postgres && !rooms.has(key)) {
// Get the room data from postgres
const { rows } = await postgres.query<PersistentRoom>(
Expand Down

0 comments on commit c767d2d

Please sign in to comment.