From 264de3c781bcf93eb9d046ca835bf8796f67018f Mon Sep 17 00:00:00 2001 From: remoterami <142154971+remoterami@users.noreply.github.com> Date: Wed, 23 Oct 2024 13:34:41 +0200 Subject: [PATCH] returning error to api --- backend/pkg/api/data_access/notifications.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/backend/pkg/api/data_access/notifications.go b/backend/pkg/api/data_access/notifications.go index e0dc9b717..868efb171 100644 --- a/backend/pkg/api/data_access/notifications.go +++ b/backend/pkg/api/data_access/notifications.go @@ -1380,8 +1380,7 @@ func (d *DataAccessService) GetNotificationSettings(ctx context.Context, userId networkEvent := types.EventName(eventSplit[1]) if _, ok := networksSettings[networkName]; !ok { - log.Error(nil, fmt.Sprintf("network is not defined: %s", networkName), 0) - continue + return nil, fmt.Errorf("network is not defined: %s", networkName) } switch networkEvent {