fix(query): show views and failed events (#3743)

* fix(system): show views and failed events

* fix: set correct database on failed events and views
This commit is contained in:
Silvan
2022-05-31 16:33:50 +02:00
committed by GitHub
parent e3e0207318
commit ed36680ea1
11 changed files with 31 additions and 29 deletions

View File

@@ -24,6 +24,7 @@ var _ admin.AdminServiceServer = (*Server)(nil)
type Server struct {
admin.UnimplementedAdminServiceServer
database string
command *command.Commands
query *query.Queries
administrator repository.AdministratorRepository
@@ -35,13 +36,16 @@ type Config struct {
Repository eventsourcing.Config
}
func CreateServer(command *command.Commands,
func CreateServer(
database string,
command *command.Commands,
query *query.Queries,
repo repository.Repository,
externalSecure bool,
userCodeAlg crypto.EncryptionAlgorithm,
) *Server {
return &Server{
database: database,
command: command,
query: query,
administrator: repo,