mirror of
https://github.com/simon-ding/polaris.git
synced 2026-04-21 03:07:30 +08:00
fix: download status
This commit is contained in:
@@ -2,6 +2,7 @@ package server
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"polaris/ent"
|
"polaris/ent"
|
||||||
|
"polaris/ent/episode"
|
||||||
"polaris/log"
|
"polaris/log"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
@@ -50,6 +51,7 @@ func (s *Server) RemoveActivity(c *gin.Context) (interface{}, error) {
|
|||||||
}
|
}
|
||||||
delete(s.tasks, his.ID)
|
delete(s.tasks, his.ID)
|
||||||
}
|
}
|
||||||
|
s.db.SetEpisodeStatus(his.EpisodeID, episode.StatusMissing)
|
||||||
|
|
||||||
err = s.db.DeleteHistory(id)
|
err = s.db.DeleteHistory(id)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user