♻️ Improve notify API

This commit is contained in:
2024-06-30 11:57:57 +08:00
parent 133bbcc6bc
commit 7e334222ee
2 changed files with 9 additions and 9 deletions

View File

@ -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
}