mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-14 12:43:08 +02:00
2756f553c6
* wip
* wip
* wip
* Update attached_notes.ts
* wip
* Refactor
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* Update call.ts
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* ✌️
* Fix
19 lines
430 B
TypeScript
19 lines
430 B
TypeScript
import Matching, { pack as packMatching } from '../../../../../models/games/reversi/matching';
|
|
import define from '../../../define';
|
|
|
|
export const meta = {
|
|
requireCredential: true
|
|
};
|
|
|
|
export default define(meta, async (ps, user) => {
|
|
// Find session
|
|
const invitations = await Matching.find({
|
|
childId: user._id
|
|
}, {
|
|
sort: {
|
|
_id: -1
|
|
}
|
|
});
|
|
|
|
return await Promise.all(invitations.map((i) => packMatching(i, user)));
|
|
});
|