console: ability to populate filters from the configuration file

This commit is contained in:
Vincent Bernat
2022-10-15 14:31:42 +02:00
parent 51080fb686
commit 2d0ab556ad
8 changed files with 117 additions and 4 deletions

View File

@@ -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
}