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, ""),