mirror of
https://github.com/paricafe/misskey.git
synced 2025-01-11 09:00:51 -06:00
17 lines
406 B
TypeScript
17 lines
406 B
TypeScript
import define from '../../../define';
|
|
import { ReversiMatchings } from '../../../../../models';
|
|
|
|
export const meta = {
|
|
tags: ['games'],
|
|
|
|
requireCredential: true as const
|
|
};
|
|
|
|
export default define(meta, async (ps, user) => {
|
|
// Find session
|
|
const invitations = await ReversiMatchings.find({
|
|
childId: user.id
|
|
});
|
|
|
|
return await Promise.all(invitations.map((i) => ReversiMatchings.pack(i, user)));
|
|
});
|