mirror of
https://github.com/crowdsecurity/crowdsec.git
synced 2025-05-11 20:36:12 +02:00
[notifications] Fix bug, list show non active (#2678)
* Fix bug, show non active notifications and sort based on profiles * diff fix
This commit is contained in:
parent
33e3fdabe4
commit
2212c2f847
3 changed files with 35 additions and 46 deletions
|
@ -54,14 +54,6 @@ func DB(c *csconfig.Config) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
func Profiles(c *csconfig.Config) error {
|
||||
if err := c.API.Server.LoadProfiles(); err != nil {
|
||||
return fmt.Errorf("while loading profiles: %w", err)
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func Notifications(c *csconfig.Config) error {
|
||||
if c.ConfigPaths.NotificationDir == "" {
|
||||
return fmt.Errorf("config_paths.notification_dir is not set in crowdsec config")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue