summaryrefslogtreecommitdiff
path: root/src/api/stream/othello.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/stream/othello.ts')
-rw-r--r--src/api/stream/othello.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/api/stream/othello.ts b/src/api/stream/othello.ts
index bd3b4a7637..55c993ec85 100644
--- a/src/api/stream/othello.ts
+++ b/src/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;
}
});