[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:
Laurence Jones 2023-12-21 11:16:54 +00:00 committed by GitHub
parent 33e3fdabe4
commit 2212c2f847
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 35 additions and 46 deletions

View file

@ -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")