Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Tabu-Middleware
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dennis Willers
Tabu-Middleware
Commits
11c42b72
Commit
11c42b72
authored
Feb 08, 2021
by
Dennis Willers
🏀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Attribut isTabooh in Gamestatus Insert Statement
parent
e7196194
Pipeline
#365
passed with stages
in 3 minutes and 11 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
events.js
events.js
+1
-1
No files found.
events.js
View file @
11c42b72
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment