summaryrefslogtreecommitdiff
path: root/src/server/api/endpoints/othello/match/cancel.ts
blob: 562e6910617d6327102288ab360282220805f86e (plain)
1
2
3
4
5
6
7
8
9
import Matching from '../../../../../models/othello-matching';

module.exports = (params, user) => new Promise(async (res, rej) => {
	await Matching.remove({
		parentId: user._id
	});

	res();
});