From 48ba6ac98a691d5e416d091c66d0d13e5141384e Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Thu, 8 Feb 2024 12:47:02 +0800 Subject: [PATCH] :bug: Bug fixes where conditional --- pkg/services/notifications.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/services/notifications.go b/pkg/services/notifications.go index f0e0659..88916e0 100644 --- a/pkg/services/notifications.go +++ b/pkg/services/notifications.go @@ -45,7 +45,7 @@ func NewNotification( var subscribers []models.NotificationSubscriber if err := database.C.Where(&models.NotificationSubscriber{ - AccountID: user.ID, + AccountID: target.ID, }).Find(&subscribers).Error; err != nil { // I don't know why cannot get subscribers list, but whatever, the notifications has created log.Error().Err(err).Msg("Unexpected error occurred during the notification.")