Skip to content

Commit

Permalink
fix(types): add missing check in match method
Browse files Browse the repository at this point in the history
  • Loading branch information
kehiy committed Sep 7, 2024
1 parent 94ef082 commit 37f8657
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions types/event.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ func (e *Event) Match(f Filter) bool {
return false
}

if e.CreatedAt >= f.Since || e.CreatedAt <= f.Until {
return false
}

for f, vals := range f.Tags {
for _, t := range e.Tags {
if f != "#"+t[0] { // should we change it(+)?
Expand Down

0 comments on commit 37f8657

Please sign in to comment.