🐛 Bug fixes where conditional

This commit is contained in:
LittleSheep 2024-02-08 12:47:02 +08:00
parent 42c3770231
commit 48ba6ac98a

View File

@ -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.")