From c6944cd3df5ef4aadb284f4aa1fbe9f1e74c6132 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sun, 29 Dec 2024 02:13:17 +0800 Subject: [PATCH] :bug: Bug fixes --- pkg/internal/models/destination.go | 2 +- pkg/internal/services/opener.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/internal/models/destination.go b/pkg/internal/models/destination.go index 4d110f2..72363c2 100644 --- a/pkg/internal/models/destination.go +++ b/pkg/internal/models/destination.go @@ -30,5 +30,5 @@ type S3Destination struct { SecretKey string `json:"secret_key"` AccessBaseURL string `json:"access_baseurl"` EnableSSL bool `json:"enable_ssl"` - EnabledSigned bool `json:"enable_signed"` + EnableSigned bool `json:"enable_signed"` } diff --git a/pkg/internal/services/opener.go b/pkg/internal/services/opener.go index 958437d..1742b36 100644 --- a/pkg/internal/services/opener.go +++ b/pkg/internal/services/opener.go @@ -116,7 +116,7 @@ func OpenAttachmentByRID(rid string, region ...string) (url string, mimetype str case models.DestinationTypeS3: var destConfigured models.S3Destination _ = jsoniter.Unmarshal(rawDest, &destConfigured) - if destConfigured.EnabledSigned { + if destConfigured.EnableSigned { var client *minio.Client client, err = minio.New(destConfigured.Endpoint, &minio.Options{ Creds: credentials.NewStaticV4(destConfigured.SecretID, destConfigured.SecretKey, ""),