summaryrefslogtreecommitdiff
path: root/src/api/endpoints/othello/games.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/endpoints/othello/games.ts')
-rw-r--r--src/api/endpoints/othello/games.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/api/endpoints/othello/games.ts b/src/api/endpoints/othello/games.ts
index f6e38b8d87..5c71f98828 100644
--- a/src/api/endpoints/othello/games.ts
+++ b/src/api/endpoints/othello/games.ts
@@ -24,14 +24,14 @@ module.exports = (params, user) => new Promise(async (res, rej) => {
}
const q: any = my ? {
- is_started: true,
+ isStarted: true,
$or: [{
- user1_id: user._id
+ user1Id: user._id
}, {
- user2_id: user._id
+ user2Id: user._id
}]
} : {
- is_started: true
+ isStarted: true
};
const sort = {