wip
This commit is contained in:
parent
6c495268ae
commit
161fd4afab
37 changed files with 747 additions and 219 deletions
9
src/api/endpoints/othello/match/cancel.ts
Normal file
9
src/api/endpoints/othello/match/cancel.ts
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
import Matching from '../../../models/othello-matching';
|
||||
|
||||
module.exports = (params, user) => new Promise(async (res, rej) => {
|
||||
await Matching.remove({
|
||||
parent_id: user._id
|
||||
});
|
||||
|
||||
res();
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue