From 236e88cf797ce0afafc4fa5b567493813850e0cf Mon Sep 17 00:00:00 2001 From: Simon Ding Date: Wed, 10 Jul 2024 22:38:28 +0800 Subject: [PATCH] fix --- db/db.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/db.go b/db/db.go index fc781de2..f34fde3d 100644 --- a/db/db.go +++ b/db/db.go @@ -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 } \ No newline at end of file