Bug/51 - Last winner is not automatically receiving the last wine! #52

Merged
KevinMidboe merged 4 commits from bug/51 into master 2020-10-11 20:30:02 +00:00
Showing only changes of commit b3b5e87ab5 - Show all commits

View File

@@ -82,7 +82,11 @@ async function gatewayRequest(body) {
res.setEncoding('utf8');
if (res.statusCode == 200) {
res.on("data", (d) => resolve(JSON.parse(d)));
res.on("data", (data) => {
console.log("Response from message gateway:", data)
resolve(JSON.parse(data))
});
} else {
res.on("data", (data) => {
data = JSON.parse(data);