Commit 11c42b72 authored by Dennis Willers's avatar Dennis Willers 🏀

Add Attribut isTabooh in Gamestatus Insert Statement

parent e7196194
Pipeline #365 passed with stages
in 3 minutes and 11 seconds
...@@ -108,7 +108,7 @@ function createRouter(db) { ...@@ -108,7 +108,7 @@ function createRouter(db) {
//Init new Gamestatus //Init new Gamestatus
var redTurn = Math.random(); var redTurn = Math.random();
redTurn = Math.round(redTurn); redTurn = Math.round(redTurn);
const sql = 'INSERT INTO Gamestatus (SessionID, Red, Blue, RedTurn, ActiveExplainer, ActiveCard) VALUES ((SELECT SessionID FROM Session WHERE SessionName = \"'+spielname+'\"), 0, 0, '+redTurn+', 0, 0);'; const sql = 'INSERT INTO Gamestatus (SessionID, Red, Blue, RedTurn, ActiveExplainer, ActiveCard, isTabooh) VALUES ((SELECT SessionID FROM Session WHERE SessionName = \"'+spielname+'\"), 0, 0, '+redTurn+', 0, 0, 0);';
console.log('addSession2: ', sql); console.log('addSession2: ', sql);
db.query( db.query(
sql, sql,
......
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