Skip to content

Commit 6bbb080

Browse files
authored
fix: problem while getting storage type (#2097)
1 parent c26cf4d commit 6bbb080

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

route/v1/recover.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import (
1717
)
1818

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

0 commit comments

Comments
 (0)