diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index b25ca93..d12a850 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -4,8 +4,9 @@
-
+
+
@@ -138,7 +139,6 @@
-
@@ -163,7 +163,8 @@
-
+
+
true
diff --git a/pkg/services/notifications.go b/pkg/services/notifications.go
index 2a7d7d3..83be5ed 100644
--- a/pkg/services/notifications.go
+++ b/pkg/services/notifications.go
@@ -2,7 +2,6 @@ package services
import (
"context"
- jsoniter "github.com/json-iterator/go"
"reflect"
"firebase.google.com/go/messaging"
@@ -58,11 +57,10 @@ func NewNotification(notification models.Notification) error {
}
func PushNotification(notification models.Notification) error {
- raw, _ := jsoniter.Marshal(notification)
for conn := range wsConn[notification.RecipientID] {
_ = conn.WriteMessage(1, models.UnifiedCommand{
Action: "notifications.new",
- Payload: raw,
+ Payload: notification,
}.Marshal())
}