3
0

Fix lapsus in action log filter timestamp usage

This commit is contained in:
Tomaž Jerman
2022-10-18 12:11:05 +02:00
parent eac2f075e1
commit 1fa5f39ab2

View File

@@ -2,10 +2,11 @@ package rdbms
import (
"fmt"
"github.com/cortezaproject/corteza-server/pkg/dal"
"strings"
"time"
"github.com/cortezaproject/corteza-server/pkg/dal"
automationType "github.com/cortezaproject/corteza-server/automation/types"
composeType "github.com/cortezaproject/corteza-server/compose/types"
"github.com/cortezaproject/corteza-server/federation/types"
@@ -40,7 +41,7 @@ func DefaultFilters() (f *extendedFilters) {
}
if f.ToTimestamp != nil {
ee = append(ee, goqu.C("ts").Lte(f.FromTimestamp))
ee = append(ee, goqu.C("ts").Lte(f.ToTimestamp))
}
if f.Limit == 0 || f.Limit > MaxLimit {