fix: used wrong attribute of config when exposing setting through info route
continuous-integration/drone/pr Build is failing
Details
continuous-integration/drone/pr Build is failing
Details
This commit is contained in:
parent
ef483c7dc3
commit
efdd72cdc8
|
@ -51,7 +51,7 @@ type vikunjaInfos struct {
|
|||
TaskCommentsEnabled bool `json:"task_comments_enabled"`
|
||||
DemoModeEnabled bool `json:"demo_mode_enabled"`
|
||||
WebhooksEnabled bool `json:"webhooks_enabled"`
|
||||
DefaultProjectView string `json:"default_project_view"`
|
||||
DefaultProjectView string `json:"default_project_view"`
|
||||
}
|
||||
|
||||
type authInfo struct {
|
||||
|
@ -96,7 +96,7 @@ func Info(c echo.Context) error {
|
|||
TaskCommentsEnabled: config.ServiceEnableTaskComments.GetBool(),
|
||||
DemoModeEnabled: config.ServiceDemoMode.GetBool(),
|
||||
WebhooksEnabled: config.WebhooksEnabled.GetBool(),
|
||||
DefaultProjectView: config.DefaultProjectView.GetString(),
|
||||
DefaultProjectView: config.ServiceDefaultProjectView.GetString(),
|
||||
AvailableMigrators: []string{
|
||||
(&vikunja_file.FileMigrator{}).Name(),
|
||||
(&ticktick.Migrator{}).Name(),
|
||||
|
|
Loading…
Reference in New Issue