diff --git a/internal/eventstore/handler/crdb/handler_stmt_test.go b/internal/eventstore/handler/crdb/handler_stmt_test.go index eb72aab059..b72db40eb1 100644 --- a/internal/eventstore/handler/crdb/handler_stmt_test.go +++ b/internal/eventstore/handler/crdb/handler_stmt_test.go @@ -9,8 +9,6 @@ import ( "testing" "time" - "github.com/zitadel/zitadel/internal/repository/pseudo" - "github.com/DATA-DOG/go-sqlmock" "github.com/stretchr/testify/assert" @@ -20,6 +18,7 @@ import ( "github.com/zitadel/zitadel/internal/eventstore/repository" es_repo_mock "github.com/zitadel/zitadel/internal/eventstore/repository/mock" "github.com/zitadel/zitadel/internal/id" + "github.com/zitadel/zitadel/internal/repository/pseudo" ) var ( @@ -196,7 +195,6 @@ func TestProjectionHandler_SearchQuery(t *testing.T) { defer client.Close() id.Configure(&id.Config{Identification: id.Identification{PrivateIp: id.PrivateIp{Enabled: true}}}) - h := NewStatementHandler(context.Background(), StatementHandlerConfig{ ProjectionHandlerConfig: handler.ProjectionHandlerConfig{ ProjectionName: tt.fields.projectionName, @@ -206,7 +204,6 @@ func TestProjectionHandler_SearchQuery(t *testing.T) { Client: &database.DB{ DB: client, }, - Reducers: tt.fields.reducers, }) diff --git a/internal/query/milestone.go b/internal/query/milestone.go index 52abbe0c3b..484ae17085 100644 --- a/internal/query/milestone.go +++ b/internal/query/milestone.go @@ -7,15 +7,13 @@ import ( "strings" "time" - "github.com/zitadel/zitadel/internal/repository/milestone" - - "github.com/zitadel/zitadel/internal/api/authz" - sq "github.com/Masterminds/squirrel" + "github.com/zitadel/zitadel/internal/api/authz" "github.com/zitadel/zitadel/internal/api/call" "github.com/zitadel/zitadel/internal/errors" "github.com/zitadel/zitadel/internal/query/projection" + "github.com/zitadel/zitadel/internal/repository/milestone" "github.com/zitadel/zitadel/internal/telemetry/tracing" ) diff --git a/internal/query/projection/milestones.go b/internal/query/projection/milestones.go index f1a665bbaf..53952b1e99 100644 --- a/internal/query/projection/milestones.go +++ b/internal/query/projection/milestones.go @@ -3,13 +3,12 @@ package projection import ( "context" - "github.com/zitadel/zitadel/internal/repository/milestone" - "github.com/zitadel/zitadel/internal/errors" "github.com/zitadel/zitadel/internal/eventstore" "github.com/zitadel/zitadel/internal/eventstore/handler" "github.com/zitadel/zitadel/internal/eventstore/handler/crdb" "github.com/zitadel/zitadel/internal/repository/instance" + "github.com/zitadel/zitadel/internal/repository/milestone" "github.com/zitadel/zitadel/internal/repository/project" "github.com/zitadel/zitadel/internal/repository/user" )