update reva and fix int config parameters as string

This commit is contained in:
Willy Kloucek
2021-09-27 10:21:59 +02:00
parent bfb801b63d
commit 0614f3c613
3 changed files with 25 additions and 24 deletions
+3 -2
View File
@@ -6,6 +6,7 @@ import (
"fmt"
"os"
"path"
"strconv"
"strings"
"github.com/cs3org/reva/cmd/revad/runtime"
@@ -60,8 +61,8 @@ func Frontend(cfg *config.Config) *cli.Command {
"version": "2.0.0",
"formats": []string{"tar", "zip"},
"archiver_url": cfg.Reva.Archiver.ArchiverURL,
"max_num_files": cfg.Reva.Archiver.MaxNumFiles,
"max_size": cfg.Reva.Archiver.MaxSize,
"max_num_files": strconv.FormatInt(cfg.Reva.Archiver.MaxNumFiles, 10),
"max_size": strconv.FormatInt(cfg.Reva.Archiver.MaxSize, 10),
},
}