protocol/activity_center_persistence.go
File activity_center_persistence.go
has 1212 lines of code (exceeds 900 allowed). Consider refactoring. Open
Open
package protocol
import (
"context"
"database/sql"
sqlitePersistence
has 37 methods (exceeds 21 allowed). Consider refactoring. Open
Open
func (db sqlitePersistence) DeleteActivityCenterNotificationByID(id []byte, updatedAt uint64) error {
_, err := db.db.Exec(`UPDATE activity_center_notifications SET deleted = 1, updated_at = ? WHERE id = ? AND NOT deleted`, updatedAt, id)
return err
}