monkeeShark/src/server/api/endpoints/games/reversi/match/cancel.ts
2018-07-07 19:01:33 +09:00

10 lines
281 B
TypeScript

import Matching from '../../../../../../models/games/reversi/matching';
import { ILocalUser } from '../../../../../../models/user';
export default (params: any, user: ILocalUser) => new Promise(async (res, rej) => {
await Matching.remove({
parentId: user._id
});
res();
});