Scroll?
This commit is contained in:
@@ -111,7 +111,7 @@ app.post("/getWatchlist", authenticate, async (req, res) => {
|
||||
const watchlist = await pool.request()
|
||||
.input("userID", sql.Int, req.user.Id)
|
||||
.input("id", sql.Int, id)
|
||||
.query(`SELECT Player.PlayerName, Player.Team, Player.Position, Player.PlayerID FROM Watch JOIN Player ON Watch.PlayerID = Player.PlayerID WHERE UserID = @userID`);
|
||||
.query(`SELECT Player.PlayerName, Player.Team, Player.Position, Player.PlayerID FROM Watch JOIN Player ON Watch.PlayerID = Player.PlayerID WHERE UserID = @userID ORDER BY Player.PlayerName`);
|
||||
|
||||
res.status(200).json({ watchlist: watchlist.recordset });
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user