mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 21:17:32 +00:00
@@ -1,8 +1,6 @@
|
||||
package readmodel
|
||||
|
||||
import (
|
||||
"github.com/shopspring/decimal"
|
||||
|
||||
"github.com/zitadel/zitadel/internal/v2/eventstore"
|
||||
"github.com/zitadel/zitadel/internal/v2/system"
|
||||
"github.com/zitadel/zitadel/internal/v2/system/mirror"
|
||||
@@ -10,7 +8,7 @@ import (
|
||||
|
||||
type LastSuccessfulMirror struct {
|
||||
ID string
|
||||
Position decimal.Decimal
|
||||
Position float64
|
||||
source string
|
||||
}
|
||||
|
||||
@@ -55,7 +53,7 @@ func (h *LastSuccessfulMirror) Reduce(events ...*eventstore.StorageEvent) (err e
|
||||
|
||||
func (h *LastSuccessfulMirror) reduceSucceeded(event *eventstore.StorageEvent) error {
|
||||
// if position is set we skip all older events
|
||||
if h.Position.GreaterThan(decimal.NewFromInt(0)) {
|
||||
if h.Position > 0 {
|
||||
return nil
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user