mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-06-23 01:09:26 +02:00
Fix:Removing media progress that was started local
This commit is contained in:
parent
f4f5f79af7
commit
9f6bfeb839
2 changed files with 3 additions and 3 deletions
|
@ -48,8 +48,7 @@ class MeController {
|
|||
|
||||
// DELETE: api/me/progress/:id
|
||||
async removeMediaProgress(req, res) {
|
||||
var wasRemoved = req.user.removeMediaProgress(req.params.id)
|
||||
if (!wasRemoved) {
|
||||
if (!req.user.removeMediaProgress(req.params.id)) {
|
||||
return res.sendStatus(200)
|
||||
}
|
||||
await this.db.updateEntity('user', req.user)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue