From 6bbb0802aa8b55e8c133cfe04fb0a32ac5e9130b Mon Sep 17 00:00:00 2001 From: Ns2Kracy <89824014+Ns2Kracy@users.noreply.github.com> Date: Tue, 17 Dec 2024 15:53:04 +0800 Subject: [PATCH] fix: problem while getting storage type (#2097) --- route/v1/recover.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/route/v1/recover.go b/route/v1/recover.go index 70acc7f..8bc9c35 100644 --- a/route/v1/recover.go +++ b/route/v1/recover.go @@ -17,7 +17,7 @@ import ( ) func GetRecoverStorage(ctx echo.Context) error { - t := ctx.Param("type") + t := strings.TrimSuffix(ctx.Param("type"), "/") currentTime := time.Now().UTC() currentDate := time.Now().UTC().Format("2006-01-02") notify := make(map[string]interface{})