diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 916abf0..bc75325 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -4,18 +4,9 @@
-
+
-
-
-
-
-
-
-
-
-
@@ -162,7 +153,6 @@
-
@@ -187,7 +177,8 @@
-
+
+
true
diff --git a/pkg/internal/services/notifications.go b/pkg/internal/services/notifications.go
index 1bf601c..1ecaa08 100644
--- a/pkg/internal/services/notifications.go
+++ b/pkg/internal/services/notifications.go
@@ -148,7 +148,9 @@ func PushNotificationBatch(notifications []models.Notification) {
var providers []string
var tokens []string
- for _, subscriber := range subscribers {
+ for _, subscriber := range lo.Filter(subscribers, func(item models.NotificationSubscriber, index int) bool {
+ return item.AccountID == notification.AccountID
+ }) {
providers = append(providers, subscriber.Provider)
tokens = append(tokens, subscriber.DeviceToken)
}