Ensured anything in master is implemented

This commit is contained in:
Joe-Dowd
2020-04-02 18:53:02 +01:00
parent 5d2d5819cf
commit 819f338c68
5 changed files with 26 additions and 1 deletions

View File

@@ -168,6 +168,16 @@ module.exports = async function submitSponsorTimes(req, res) {
}
}]
}
}, (err, res) => {
if (err) {
console.log("Failed to send first time submission Discord hook.");
console.log(JSON.stringify(err));
console.log("\n");
} else if (res && res.statusCode >= 400) {
console.log("Error sending first time submission Discord hook");
console.log(JSON.stringify(res));
console.log("\n");
}
});
});
}