diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-04-24 18:13:06 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-04-24 18:13:06 +0900 |
| commit | 7602e8f9383be37c0f7d9359f862c366b7f2fa00 (patch) | |
| tree | 013dc2467b4a2e028371d4cf94f42a138d2eb4d5 /src/server/api/endpoints/othello/match.ts | |
| parent | Better japanese (diff) | |
| download | misskey-7602e8f9383be37c0f7d9359f862c366b7f2fa00.tar.gz misskey-7602e8f9383be37c0f7d9359f862c366b7f2fa00.tar.bz2 misskey-7602e8f9383be37c0f7d9359f862c366b7f2fa00.zip | |
cafy 5.xに移行
Diffstat (limited to 'src/server/api/endpoints/othello/match.ts')
| -rw-r--r-- | src/server/api/endpoints/othello/match.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/api/endpoints/othello/match.ts b/src/server/api/endpoints/othello/match.ts index d9274f8f9c..b73b64437b 100644 --- a/src/server/api/endpoints/othello/match.ts +++ b/src/server/api/endpoints/othello/match.ts @@ -1,4 +1,4 @@ -import $ from 'cafy'; +import $ from 'cafy'; import ID from '../../../../cafy-id'; import Matching, { pack as packMatching } from '../../../../models/othello-matching'; import OthelloGame, { pack as packGame } from '../../../../models/othello-game'; import User from '../../../../models/user'; @@ -7,7 +7,7 @@ import { eighteight } from '../../../../othello/maps'; module.exports = (params, user) => new Promise(async (res, rej) => { // Get 'userId' parameter - const [childId, childIdErr] = $(params.userId).id().$; + const [childId, childIdErr] = $(params.userId).type(ID).$; if (childIdErr) return rej('invalid userId param'); // Myself |