Merge pull request #802 from jmt-gh/getMediaProgress_fix

fix getMediaProgress always returning 404
This commit is contained in:
advplyr 2022-07-03 12:20:24 -05:00 committed by GitHub
commit 9ac2453676
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
}