diff options
Diffstat (limited to 'src/server/api/stream/othello.ts')
| -rw-r--r-- | src/server/api/stream/othello.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/api/stream/othello.ts b/src/server/api/stream/othello.ts index bd3b4a7637..55c993ec85 100644 --- a/src/server/api/stream/othello.ts +++ b/src/server/api/stream/othello.ts @@ -18,11 +18,11 @@ export default function(request: websocket.request, connection: websocket.connec case 'ping': if (msg.id == null) return; const matching = await Matching.findOne({ - parent_id: user._id, - child_id: new mongo.ObjectID(msg.id) + parentId: user._id, + childId: new mongo.ObjectID(msg.id) }); if (matching == null) return; - publishUserStream(matching.child_id, 'othello_invited', await pack(matching, matching.child_id)); + publishUserStream(matching.childId, 'othello_invited', await pack(matching, matching.childId)); break; } }); |