mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-10 11:33:08 +02:00
Fix bug
This commit is contained in:
parent
ec6bc311ab
commit
88d1ac2556
1 changed files with 1 additions and 0 deletions
|
@ -28,6 +28,7 @@ export default function(request: websocket.request, connection: websocket.connec
|
|||
const game = await Game.findOne({ _id: gameId });
|
||||
|
||||
if (game.is_ended) return;
|
||||
if (!game.black_user_id.equals(user._id) && !game.white_user_id.equals(user._id)) return;
|
||||
|
||||
const o = new Othello();
|
||||
|
||||
|
|
Loading…
Reference in a new issue