fix: used wrong attribute of config when exposing setting through info route
continuous-integration/drone/pr Build is failing Details

This commit is contained in:
Daniel Herrmann 2024-03-02 19:14:53 +01:00
parent ef483c7dc3
commit efdd72cdc8
1 changed files with 2 additions and 2 deletions

View File

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