mirror of
https://github.com/simon-ding/polaris.git
synced 2026-02-25 21:20:53 +08:00
fix: download status
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user