This commit is contained in:
Simon Ding
2024-07-10 22:38:28 +08:00
parent 171eef57cc
commit 236e88cf79

View File

@@ -333,7 +333,7 @@ func (c *Client) DeleteHistory(id int) error {
func (c *Client) GetDownloadDir() string {
r, err := c.ent.Settings.Query().Where(settings.Key(SettingDownloadDir)).First(context.TODO())
if err != nil {
return "/download"
return "/downloads"
}
return r.Value
}