Skip to content

Commit

Permalink
Update sqlite3/replace.go
Browse files Browse the repository at this point in the history
Co-authored-by: Isaque Veras <[email protected]>
  • Loading branch information
fiatjaf and isaqueveras authored Jan 30, 2025
1 parent 1f075a3 commit 4ba818f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sqlite3/replace.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ func (b *SQLite3Backend) ReplaceEvent(ctx context.Context, evt *nostr.Event) err
if err != nil {
return fmt.Errorf("fail to start txn: %w", err)
}
defer txn.Rollback()

filter := nostr.Filter{Limit: 1, Kinds: []int{evt.Kind}, Authors: []string{evt.PubKey}}
if nostr.IsAddressableKind(evt.Kind) {
Expand Down

0 comments on commit 4ba818f

Please sign in to comment.