mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-23 01:13:48 +01:00
wip
This commit is contained in:
parent
b7eb998feb
commit
25242f357f
@ -15,7 +15,11 @@ module.exports = (params, user) => new Promise(async (res, rej) => {
|
||||
} : {};
|
||||
|
||||
// Fetch games
|
||||
const games = await Game.find(q);
|
||||
const games = await Game.find(q, {
|
||||
sort: {
|
||||
_id: -1
|
||||
}
|
||||
});
|
||||
|
||||
// Reponse
|
||||
res(Promise.all(games.map(async (g) => await pack(g, user))));
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user