mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-01-08 00:08:14 +01:00
Merge pull request #802 from jmt-gh/getMediaProgress_fix
fix getMediaProgress always returning 404
This commit is contained in:
commit
9ac2453676
@ -33,7 +33,7 @@ class MeController {
|
||||
|
||||
// GET: api/me/progress/:id/:episodeId?
|
||||
async getMediaProgress(req, res) {
|
||||
const mediaProgress = req.user.getMediaProgress(req.id, req.episodeId || null)
|
||||
const mediaProgress = req.user.getMediaProgress(req.params.id, req.params.episodeId || null)
|
||||
if (!mediaProgress) {
|
||||
return res.sendStatus(404)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user