Refactorijg
This commit is contained in:
parent
2cdcbcc80e
commit
865fd25af1
19 changed files with 46 additions and 44 deletions
10
src/server/api/endpoints/games/reversi/match/cancel.ts
Normal file
10
src/server/api/endpoints/games/reversi/match/cancel.ts
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
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();
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue