1
0

fix(cmd): do not initialize asnyc operations when running certain cli commands

This commit is contained in:
kolaente
2023-09-04 11:22:50 +02:00
parent f38535b2f4
commit c28d1af877
4 changed files with 13 additions and 8 deletions

View File

@ -32,7 +32,7 @@ var indexCmd = &cobra.Command{
Use: "index",
Short: "Reindex all of Vikunja's data into Typesense. This will remove any existing index.",
PreRun: func(cmd *cobra.Command, args []string) {
initialize.FullInit()
initialize.FullInitWithoutAsync()
},
Run: func(cmd *cobra.Command, args []string) {
if !config.TypesenseEnabled.GetBool() {