diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 0c0412c..49b501b 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -4,7 +4,10 @@
-
+
+
+
+
@@ -149,7 +152,6 @@
-
@@ -174,7 +176,8 @@
-
+
+
true
diff --git a/pkg/internal/services/notifications.go b/pkg/internal/services/notifications.go
index bea847d..c863e5b 100644
--- a/pkg/internal/services/notifications.go
+++ b/pkg/internal/services/notifications.go
@@ -47,12 +47,9 @@ func NewNotification(notification models.Notification) error {
return err
}
- go func() {
- err := PushNotification(notification)
- if err != nil {
- log.Error().Err(err).Msg("Unexpected error occurred during the notification.")
- }
- }()
+ if err := PushNotification(notification); err != nil {
+ return err
+ }
return nil
}