Skip to content

Commit da2af82

Browse files
committed
CSS and other Minor changes
1 parent 39fcd10 commit da2af82

File tree

4 files changed

+11
-10
lines changed

4 files changed

+11
-10
lines changed

Diff for: .vscode/settings.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"githubPullRequests.ignoredPullRequestBranches": [
3+
"main"
4+
]
5+
}

Diff for: score_keeper_client/src/App.css

+4
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,10 @@ span{
118118
margin-right: 3%;
119119
}
120120

121+
.css-2uchni{
122+
background-color: black;
123+
}
124+
121125
.name-div{
122126
background-color: transparent;
123127
}

Diff for: score_keeper_server/modals/modal.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@ const mongoose = require('mongoose');
22

33
// Define a schema for the game data
44
const gameDataSchema = new mongoose.Schema({
5-
authId: {
6-
type: String,
7-
index: true
8-
},
5+
authId: String,
96
title: String,
107
player1: String,
118
player2: String,

Diff for: score_keeper_server/server.js

+1-6
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,7 @@ app.post("/submitGameData", async (req, res) => {
5454
});
5555

5656
app.get("/getAllGameData", async (req, res) => {
57-
const gameData = await GameData.aggregate([
58-
{
59-
$match: {}
60-
}
61-
]);
62-
57+
const gameData = await GameData.find()
6358
res.status(200).send(gameData)
6459
})
6560

0 commit comments

Comments
 (0)