mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 21:37:32 +00:00
(cherry picked from commit aeb379e7de
)
This commit is contained in:

committed by
Livio Spring

parent
f0ce5d537c
commit
6bd706be98
@@ -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