Skip to content

Commit

Permalink
Merge pull request #109 from DaftFuzz/bugfix/variables-casing
Browse files Browse the repository at this point in the history
Bugfix/variables casing
  • Loading branch information
CyferShepard authored Oct 18, 2023
2 parents b6dcaad + 0158edb commit 9ae192f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion backend/routes/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => ({
Expand Down
2 changes: 1 addition & 1 deletion backend/routes/stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 9ae192f

Please sign in to comment.