added area post

This commit is contained in:
lesmaux
2018-10-13 21:27:59 +13:00
parent 21c230e77b
commit 3ebabe2a88
6 changed files with 330 additions and 299 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ exports.connect = function(done){
state.pool = mysql.createPool({
host: 'localhost',
user: 'root',
password: 'root',
password: '',
port: 3306,
database: "territory-walker",
//multipleStatements: true
+284 -284
View File
File diff suppressed because it is too large Load Diff
-1
View File
@@ -5,7 +5,6 @@ let areaFunctions = require("./areaFunctions.js");
module.exports = {
getPolygons : function (req, res) {
mathFunc.calculateArea([]);
if (req.query.gameID != null) {
let query = "CALL getPolygonPoints(\"" + req.query.gameID + "\");";
db.get().query(query, function(err, rows){