🐛 Bug fixes

This commit is contained in:
LittleSheep 2024-12-29 02:13:17 +08:00
parent 2f1385676b
commit c6944cd3df
2 changed files with 2 additions and 2 deletions

View File

@ -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"`
}

View File

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