🐛 Fix cannot add notification subscription
This commit is contained in:
parent
6db14a71af
commit
816ee07947
@ -25,7 +25,7 @@ func AddNotifySubscriber(user models.Account, provider, id, tk, ua string) (mode
|
||||
if err := database.C.Where(&models.NotificationSubscriber{
|
||||
DeviceID: id,
|
||||
AccountID: user.ID,
|
||||
}); err != nil {
|
||||
}).First(&prev).Error; err != nil {
|
||||
subscriber = models.NotificationSubscriber{
|
||||
UserAgent: ua,
|
||||
Provider: provider,
|
||||
|
Loading…
x
Reference in New Issue
Block a user