corrected live accessor

This commit is contained in:
mr
2025-06-26 15:59:21 +02:00
parent af0d7807bc
commit 34b7cdcf06
3 changed files with 5 additions and 5 deletions

View File

@@ -15,12 +15,12 @@ type computeUnitsMongoAccessor[T LiveInterface] struct {
}
// New creates a new instance of the computeUnitsMongoAccessor
func NewAccessor[T LiveInterface](request *tools.APIRequest) *computeUnitsMongoAccessor[T] {
func NewAccessor[T LiveInterface](t tools.DataType, request *tools.APIRequest) *computeUnitsMongoAccessor[T] {
return &computeUnitsMongoAccessor[T]{
AbstractAccessor: utils.AbstractAccessor{
Logger: logs.CreateLogger(tools.LIVE_DATACENTER.String()), // Create a logger with the data type
Logger: logs.CreateLogger(t.String()), // Create a logger with the data type
Request: request,
Type: tools.LIVE_DATACENTER,
Type: t,
},
}
}