this repo has no description smallweb.run
smallweb
4
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix unmarshaling of cron tasks

pomdtr 0f45e8ee b17c0831

+7 -2
+1 -1
app/app.go
··· 22 22 type AppConfig struct { 23 23 Entrypoint string `json:"entrypoint,omitempty"` 24 24 Root string `json:"root,omitempty"` 25 - Crons []CronJob `json:"cron"` 25 + Crons []CronJob `json:"crons,omitempty"` 26 26 Private bool `json:"private"` 27 27 PrivateRoutes []string `json:"privateRoutes"` 28 28 PublicRoutes []string `json:"publicRoutes"`
+6 -1
cmd/crons.go
··· 122 122 for _, item := range crons { 123 123 printer.AddField(item.Schedule) 124 124 printer.AddField(item.App) 125 - printer.AddField(strings.Join(item.Args, " ")) 125 + args, err := json.Marshal(item.Args) 126 + if err != nil { 127 + return fmt.Errorf("failed to marshal args: %w", err) 128 + } 129 + 130 + printer.AddField(string(args)) 126 131 127 132 printer.EndRow() 128 133 }