mirror of
https://github.com/aljazceru/khatru.git
synced 2026-01-22 22:54:21 +01:00
add .Until filtering to event query.
This commit is contained in:
@@ -67,6 +67,11 @@ func (b *BasicRelay) QueryEvents(
|
||||
params = append(params, filter.Since)
|
||||
}
|
||||
|
||||
if filter.Until != 0 {
|
||||
conditions = append(conditions, "created_at < ?")
|
||||
params = append(params, filter.Until)
|
||||
}
|
||||
|
||||
if len(conditions) == 0 {
|
||||
// fallback
|
||||
conditions = append(conditions, "true")
|
||||
|
||||
Reference in New Issue
Block a user