10 lines
269 B
TypeScript
10 lines
269 B
TypeScript
import Matching from '../../../../../models/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();
|
|
});
|