From bcb6b63111384b518d197e3b0e5ba9073391540e Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 16 Mar 2018 23:56:20 +0900 Subject: [PATCH] Fix bug --- src/common/othello/ai/back.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/othello/ai/back.ts b/src/common/othello/ai/back.ts index 54e99da38..b6813bcb8 100644 --- a/src/common/othello/ai/back.ts +++ b/src/common/othello/ai/back.ts @@ -82,7 +82,7 @@ process.on('message', async msg => { ? `?[${user.name}](${conf.url}/${user.username})さんに勝ちました♪ (強さ${form[0].value})` : `?[${user.name}](${conf.url}/${user.username})さんに負けました... (強さ${form[0].value})`; - request.post(`${conf.api_url}/posts/create`, { + await request.post(`${conf.api_url}/posts/create`, { json: { i, reply_id: post.id, text: text