fix: problem while getting storage type (#2097)

This commit is contained in:
Ns2Kracy 2024-12-17 15:53:04 +08:00 committed by GitHub
parent c26cf4dbec
commit 6bbb0802aa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -17,7 +17,7 @@ import (
) )
func GetRecoverStorage(ctx echo.Context) error { func GetRecoverStorage(ctx echo.Context) error {
t := ctx.Param("type") t := strings.TrimSuffix(ctx.Param("type"), "/")
currentTime := time.Now().UTC() currentTime := time.Now().UTC()
currentDate := time.Now().UTC().Format("2006-01-02") currentDate := time.Now().UTC().Format("2006-01-02")
notify := make(map[string]interface{}) notify := make(map[string]interface{})