mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-01-02 12:09:11 +01:00
fix getMediaProgress not returning properly
This commit is contained in:
parent
2e466bb164
commit
855272a558
@ -33,7 +33,7 @@ class MeController {
|
|||||||
|
|
||||||
// GET: api/me/progress/:id/:episodeId?
|
// GET: api/me/progress/:id/:episodeId?
|
||||||
async getMediaProgress(req, res) {
|
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) {
|
if (!mediaProgress) {
|
||||||
return res.sendStatus(404)
|
return res.sendStatus(404)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user