Sharkey/src/server/api/endpoints/othello/match/cancel.ts
2018-03-29 20:32:18 +09:00

9 lines
197 B
TypeScript

import Matching from '../../../../../models/othello-matching';
module.exports = (params, user) => new Promise(async (res, rej) => {
await Matching.remove({
parentId: user._id
});
res();
});