Styleeees

This commit is contained in:
RochesterX
2025-11-29 19:02:01 -05:00
parent ab95ba82ac
commit 29508ae9f8
7 changed files with 204 additions and 84 deletions

View File

@@ -169,7 +169,7 @@ app.post("/getPlayers", authenticate, async (req, res) => {
.input("two", sql.VarChar, positions[1])
.input("three", sql.VarChar, positions[2])
.input("four", sql.VarChar, positions[3])
.query(`SELECT p.PlayerID, p.PlayerName, c.TotalValue, p.Team, p.Position FROM Player AS p JOIN Contract AS c ON p.PlayerID = c.PlayerID WHERE p.PlayerName LIKE '%' + @query + '%' AND p.Position IN (@one, @two, @three, @four);`);
.query(`SELECT p.PlayerID, p.PlayerName, c.TotalValue, p.Team, p.Position FROM Player AS p JOIN Contract AS c ON p.PlayerID = c.PlayerID WHERE p.PlayerName LIKE '%' + @query + '%' AND p.Position IN (@one, @two, @three, @four) ORDER BY p.PlayerName;`);
res.status(200).json({ query: player, matches: result.recordset });
});