Skip to content

Commit

Permalink
Merge pull request #1023 from gobitfly/BEDS-472/handle-missing-network
Browse files Browse the repository at this point in the history
(BEDS-472) return missing network error to api
  • Loading branch information
remoterami authored Oct 23, 2024
2 parents ba3812b + 264de3c commit d3c6758
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions backend/pkg/api/data_access/notifications.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit d3c6758

Please sign in to comment.