aboutsummaryrefslogtreecommitdiffstats
path: root/routers/api/actions/artifactsv4.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/api/actions/artifactsv4.go')
-rw-r--r--routers/api/actions/artifactsv4.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/api/actions/artifactsv4.go b/routers/api/actions/artifactsv4.go
index dde9caf4f2..2ace9f915f 100644
--- a/routers/api/actions/artifactsv4.go
+++ b/routers/api/actions/artifactsv4.go
@@ -448,7 +448,7 @@ func (r *artifactV4Routes) getSignedArtifactURL(ctx *ArtifactContext) {
respData := GetSignedArtifactURLResponse{}
- if setting.Actions.ArtifactStorage.MinioConfig.ServeDirect {
+ if setting.Actions.ArtifactStorage.ServeDirect() {
u, err := storage.ActionsArtifacts.URL(artifact.StoragePath, artifact.ArtifactPath)
if u != nil && err == nil {
respData.SignedUrl = u.String()