diff options
Diffstat (limited to 'src/api/endpoints/othello/invitations.ts')
| -rw-r--r-- | src/api/endpoints/othello/invitations.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/api/endpoints/othello/invitations.ts b/src/api/endpoints/othello/invitations.ts index f462ef0bf9..02fb421fbc 100644 --- a/src/api/endpoints/othello/invitations.ts +++ b/src/api/endpoints/othello/invitations.ts @@ -4,6 +4,10 @@ module.exports = (params, user) => new Promise(async (res, rej) => { // Find session const invitations = await Matching.find({ child_id: user._id + }, { + sort: { + _id: -1 + } }); // Reponse |