chore: update system setting default value (#1665)

This commit is contained in:
boojack
2023-05-15 22:59:26 +08:00
committed by GitHub
parent 041be46732
commit 1a8310f027
5 changed files with 3 additions and 15 deletions

View File

@@ -137,7 +137,7 @@ func (s *Server) registerResourceRoutes(g *echo.Group) {
if err != nil && common.ErrorCode(err) != common.NotFound {
return echo.NewHTTPError(http.StatusInternalServerError, "Failed to find local storage path setting").SetInternal(err)
}
localStoragePath := ""
localStoragePath := "assets/{timestamp}_{filename}"
if systemSettingLocalStoragePath != nil {
err = json.Unmarshal([]byte(systemSettingLocalStoragePath.Value), &localStoragePath)
if err != nil {