diff --git a/batch.go b/batch.go index f1a475745..174c362b7 100644 --- a/batch.go +++ b/batch.go @@ -316,7 +316,7 @@ func (n *QueryNode) doQuery(in edge.Edge) error { } for _, bch := range batches { // Set stop time based off query bounds - if bch.Begin().Time().IsZero() || !n.query.IsGroupedByTime() { + if bch.Begin().Time().IsZero() || n.query.IsGroupedByTime() { bch.Begin().SetTime(stop) }