X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=empathy.js;h=3a3f80de007e6eab8a0b855a8a4f908d6b834d45;hb=99fe599c5e4efab0fd285bc58f39ea09e2655dad;hp=7dbf5d80c40bf5064a1ee77e091419970aecfd2c;hpb=98d81b7b03f2ad279debd6eb1372ca6746eebd88;p=lmno-server diff --git a/empathy.js b/empathy.js index 7dbf5d8..3a3f80d 100644 --- a/empathy.js +++ b/empathy.js @@ -228,7 +228,7 @@ router.post('/vote/:prompt_id([0-9]+)', (request, response) => { const prompt_id = parseInt(request.params.prompt_id, 10); if (game.toggle_vote(prompt_id, request.session.id)) - response.sendStatus(200); + response.send(''); else response.sendStatus(404); }); @@ -238,7 +238,7 @@ router.post('/start/:prompt_id([0-9]+)', (request, response) => { const prompt_id = parseInt(request.params.prompt_id, 10); if (game.start(prompt_id)) - response.sendStatus(200); + response.send(''); else response.sendStatus(404); });