added area post
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Generated
+284
-284
File diff suppressed because it is too large
Load Diff
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user