Fix config default value for token expiry

This commit is contained in:
Benedikt Kulmann
2020-07-01 16:30:17 +02:00
parent 77cc899a44
commit e3e202cd8b
+1 -3
View File
@@ -1,8 +1,6 @@
package flagset
import (
"time"
"github.com/micro/cli/v2"
"github.com/owncloud/ocis-reva/pkg/config"
)
@@ -92,7 +90,7 @@ func GatewayWithConfig(cfg *config.Config) []cli.Flag {
},
&cli.IntFlag{
Name: "transfer-expires",
Value: 24 * int(time.Hour),
Value: 24 * 60 * 60,
Usage: "Transfer secret for datagateway",
EnvVars: []string{"REVA_TRANSFER_EXPIRES"},
Destination: &cfg.Reva.TransferExpires,