Signed-off-by: oppiliappan me@oppi.li
-1
appview/db/artifact.go
-1
appview/db/artifact.go
+81
-45
appview/db/notifications.go
+81
-45
appview/db/notifications.go
···-func (d *DB) CreateNotification(ctx context.Context, notification *models.Notification) error {INSERT INTO notifications (recipient_did, actor_did, type, entity_type, entity_id, read, repo_id, issue_id, pull_id)···-func (d *DB) MarkNotificationRead(ctx context.Context, notificationID int64, userDID string) error {············-func (d *DB) DeleteNotification(ctx context.Context, notificationID int64, userDID string) error {······-func (d *DB) GetNotificationPreferences(ctx context.Context, userDID string) (*models.NotificationPreferences, error) {+func GetNotificationPreference(e Execer, userDid string) (*models.NotificationPreferences, error) {+func GetNotificationPreferences(e Execer, filters ...filter) (map[syntax.DID]*models.NotificationPreferences, error) {
+17
-1
appview/models/notifications.go
+17
-1
appview/models/notifications.go
·········
+4
-4
appview/notifications/notifications.go
+4
-4
appview/notifications/notifications.go
············
+20
-20
appview/notify/db/db.go
+20
-20
appview/notify/db/db.go
························log.Printf("NewFollow: failed to get notification preferences for %s: %v", follow.SubjectDid, err)·····················log.Printf("NewIssueClosed: failed to get notification preferences for %s: %v", repo.Did, err)······log.Printf("NewPullMerged: failed to get notification preferences for %s: %v", pull.OwnerDid, err)······log.Printf("NewPullClosed: failed to get notification preferences for %s: %v", pull.OwnerDid, err)···
+3
-2
appview/settings/settings.go
+3
-2
appview/settings/settings.go
·········