summaryrefslogtreecommitdiff
path: root/src/api/endpoints/othello/invitations.ts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-03-07 18:56:55 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-03-07 18:56:55 +0900
commita53874edc265f6cd1aab54dbbbfcd996e81aec17 (patch)
tree42914bfbf9a50817da08e5e64fd9e8cf8206e099 /src/api/endpoints/othello/invitations.ts
parentwip (diff)
downloadsharkey-a53874edc265f6cd1aab54dbbbfcd996e81aec17.tar.gz
sharkey-a53874edc265f6cd1aab54dbbbfcd996e81aec17.tar.bz2
sharkey-a53874edc265f6cd1aab54dbbbfcd996e81aec17.zip
wip
Diffstat (limited to 'src/api/endpoints/othello/invitations.ts')
-rw-r--r--src/api/endpoints/othello/invitations.ts4
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