fix filter tests.

This commit is contained in:
fiatjaf
2023-08-06 20:03:05 -03:00
parent 5a51f84433
commit abb66db97e
3 changed files with 3 additions and 27 deletions
+2 -2
View File
@@ -63,11 +63,11 @@ func (ef Filter) Matches(event *Event) bool {
}
}
if ef.Since != nil && event.CreatedAt <= *ef.Since {
if ef.Since != nil && event.CreatedAt < *ef.Since {
return false
}
if ef.Until != nil && event.CreatedAt >= *ef.Until {
if ef.Until != nil && event.CreatedAt > *ef.Until {
return false
}