fix: download status

This commit is contained in:
Simon Ding
2024-07-15 15:42:09 +08:00
parent 5216260e70
commit f0b334ebcd

View File

@@ -2,6 +2,7 @@ package server
import (
"polaris/ent"
"polaris/ent/episode"
"polaris/log"
"strconv"
@@ -50,6 +51,7 @@ func (s *Server) RemoveActivity(c *gin.Context) (interface{}, error) {
}
delete(s.tasks, his.ID)
}
s.db.SetEpisodeStatus(his.EpisodeID, episode.StatusMissing)
err = s.db.DeleteHistory(id)
if err != nil {