Merge pull request #299 from croumegous/fix-204-response-invalid-json

fix(frontend): fix invalid json error when HTTP response is 204
This commit is contained in:
Keith Stevens
2023-01-03 08:47:43 +09:00
committed by GitHub
@@ -63,7 +63,6 @@ const handler = async (req, res) => {
message_id: registeredTask.id,
}),
});
await ackRes.json();
// Send the results to the client.
res.status(200).json(registeredTask);