Release 2.0.0
Reworked default points
This commit is contained in:
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "jeopardyserver",
|
||||
"version": "1.0.4",
|
||||
"version": "2.0.0",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "jeopardyserver",
|
||||
"version": "1.0.4",
|
||||
"version": "2.0.0",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"@types/express": "^5.0.3",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "jeopardyserver",
|
||||
"version": "1.0.4",
|
||||
"version": "2.0.0",
|
||||
"description": "",
|
||||
"license": "ISC",
|
||||
"author": "",
|
||||
|
||||
15
src/games.js
15
src/games.js
@@ -493,10 +493,17 @@ async function createWall(req, res) {
|
||||
|
||||
let newQuestions = [];
|
||||
|
||||
for (let id = 0; id < 25; id++) {
|
||||
newQuestions.push(
|
||||
createSimpleQuestion(-1, 'Frage', 'Antwort', req.user._id),
|
||||
);
|
||||
for (let id = 1; id <= 5; id++) {
|
||||
for (let j = 1; j <= 5; j++) {
|
||||
newQuestions.push(
|
||||
createSimpleQuestion(
|
||||
j * -100,
|
||||
'Frage',
|
||||
'Antwort',
|
||||
req.user._id,
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
cQuestions
|
||||
|
||||
Reference in New Issue
Block a user