mirror of
https://github.com/akvorado/akvorado.git
synced 2025-12-11 22:14:02 +01:00
console: ability to populate filters from the configuration file
This commit is contained in:
@@ -49,6 +49,9 @@ func (c *Component) Start() error {
|
||||
if err := c.db.AutoMigrate(&SavedFilter{}); err != nil {
|
||||
return fmt.Errorf("cannot migrate database: %w", err)
|
||||
}
|
||||
if err := c.populate(); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user