mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-15 12:27:59 +00:00
15 lines
357 B
Go
15 lines
357 B
Go
|
package query
|
||
|
|
||
|
import (
|
||
|
"github.com/zitadel/zitadel/internal/domain"
|
||
|
"github.com/zitadel/zitadel/internal/eventstore"
|
||
|
)
|
||
|
|
||
|
func readModelToObjectDetails(model *eventstore.ReadModel) *domain.ObjectDetails {
|
||
|
return &domain.ObjectDetails{
|
||
|
Sequence: model.ProcessedSequence,
|
||
|
ResourceOwner: model.ResourceOwner,
|
||
|
EventDate: model.ChangeDate,
|
||
|
}
|
||
|
}
|