Skip to content

Commit

Permalink
feat: 自动更新失败后尝试修复
Browse files Browse the repository at this point in the history
  • Loading branch information
devhaozi committed Jan 2, 2025
1 parent 7dc9809 commit 645a6d2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/job/panel_task.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ func (r *PanelTask) updatePanel() {
if download := collect.First(panel.Downloads); download != nil {
if err = r.backupRepo.UpdatePanel(panel.Version, download.URL, download.Checksum); err != nil {
r.log.Warn("[Panel Task] failed to update panel", slog.Any("err", err))
_ = r.backupRepo.FixPanel()
}
}
})
Expand Down

0 comments on commit 645a6d2

Please sign in to comment.