Merge pull request #109 from DaftFuzz/bugfix/variables-casing

Bugfix/variables casing
This commit is contained in:
Thegan Govender
2023-10-18 13:05:35 +02:00
committed by GitHub
3 changed files with 3 additions and 2 deletions

View File

@@ -29,6 +29,7 @@
- Run `npm run start` to only run the frontend React UI
- Run `npm run start-app` to run both backend and frontend at the same time
When contributing please ensure to log a pull request on the `unstable` branch
### Launching Jellystat using Docker

View File

@@ -888,7 +888,7 @@ router.post("/getItemHistory", async (req, res) => {
`select jf_playback_activity.*
from jf_playback_activity jf_playback_activity
where
("EpisodeId"=$1 OR "SeasonId"=$1 OR "NowPlayingItemId"=$1);`, [idemid]
("EpisodeId"=$1 OR "SeasonId"=$1 OR "NowPlayingItemId"=$1);`, [itemid]
);
const groupedResults = rows.map((item) => ({

View File

@@ -149,7 +149,7 @@ router.post("/getUserLastPlayed", async (req, res) => {
try {
const { userid } = req.body;
const { rows } = await db.query(
`select * from fs_last_user_activity($1) limit 15`, [userId]
`select * from fs_last_user_activity($1) limit 15`, [userid]
);
res.send(rows);
} catch (error) {