mirror of
https://github.com/simon-ding/polaris.git
synced 2026-06-09 11:39:46 +08:00
fix
This commit is contained in:
2
db/db.go
2
db/db.go
@@ -333,7 +333,7 @@ func (c *Client) DeleteHistory(id int) error {
|
|||||||
func (c *Client) GetDownloadDir() string {
|
func (c *Client) GetDownloadDir() string {
|
||||||
r, err := c.ent.Settings.Query().Where(settings.Key(SettingDownloadDir)).First(context.TODO())
|
r, err := c.ent.Settings.Query().Where(settings.Key(SettingDownloadDir)).First(context.TODO())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "/download"
|
return "/downloads"
|
||||||
}
|
}
|
||||||
return r.Value
|
return r.Value
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user