misskey/src/server/api/endpoints/games/reversi/match/cancel.ts
syuilo 2756f553c6
Improve error handling of API (#4345)
* wip

* wip

* wip

* Update attached_notes.ts

* wip

* Refactor

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* Update call.ts

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* ✌️

* Fix
2019-02-22 11:46:58 +09:00

15 lines
280 B
TypeScript

import Matching from '../../../../../../models/games/reversi/matching';
import define from '../../../../define';
export const meta = {
requireCredential: true
};
export default define(meta, async (ps, user) => {
await Matching.remove({
parentId: user._id
});
return;
});