mirror of
https://github.com/BreizhHardware/Jellystat.git
synced 2026-01-18 16:27:20 +01:00
Merge pull request #109 from DaftFuzz/bugfix/variables-casing
Bugfix/variables casing
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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) => ({
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user