Commit bdb7089f authored by Matthieu - Greep's avatar Matthieu - Greep

Remove check map (if the map is not on API )

parent 799203d6
Pipeline #459 passed with stage
in 50 seconds
...@@ -24,11 +24,6 @@ module.exports = function(app, sql, tokenCheck, errorHandler) { ...@@ -24,11 +24,6 @@ module.exports = function(app, sql, tokenCheck, errorHandler) {
if (playerData.error) return errorHandler(res, 400, playerData.error); if (playerData.error) return errorHandler(res, 400, playerData.error);
}); });
// check if map exists (tmio API check)
tmio.map(mapId).then((mapData)=>{
if (mapData.error) return errorHandler(res, 400, mapData.error);
});
sql.query('SELECT * FROM votes WHERE map = ? AND player = ?', [mapId,player], (err, sqlRes)=>{ sql.query('SELECT * FROM votes WHERE map = ? AND player = ?', [mapId,player], (err, sqlRes)=>{
if (err) { if (err) {
console.log(err); console.log(err);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment