···1414}
15151616func (msg Message) Run() error {
1717- users, err := Receivers(msg)
1717+ subs, users, err := msg.ShouldSendTo()
1818 if err != nil {
1919- return fmt.Errorf("could not determine who to send the notification to: %w", err)
2020- }
2121-2222- ll.Debug("Sending notification for %s on %s to %d users: %v", msg.Event, msg.ChurrosObjectId, len(users), users)
2323-2424- subs, err := subscriptionsOfUsers(users)
2525- if err != nil {
2626- return fmt.Errorf("could not determine which subscriptions to send the notification to: %w", err)
1919+ return fmt.Errorf("could not determine what subscriptions to send the notification to: %w", err)
2720 }
28212922 if len(subs) == 0 {