marshal time.Duration as json string

This commit is contained in:
glidea
2025-05-06 16:00:59 +08:00
parent 8f32e427d4
commit 278cb662de
8 changed files with 86 additions and 26 deletions

View File

@@ -59,7 +59,7 @@ func (c *Config) From(app *config.App) *Config {
Threshold: r.Threshold,
LabelFilters: r.LabelFilters,
EveryDay: r.EveryDay,
WatchInterval: r.WatchInterval,
WatchInterval: time.Duration(r.WatchInterval),
}
}