mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 04:17:32 +00:00
fix: handle context correctly in processEvents (#7320)
This commit is contained in:
@@ -93,8 +93,8 @@ func (h *Handler) setState(tx *sql.Tx, updatedState *state) error {
|
||||
updatedState.offset,
|
||||
)
|
||||
if err != nil {
|
||||
h.log().WithError(err).Debug("unable to update state")
|
||||
return err
|
||||
h.log().WithError(err).Warn("unable to update state")
|
||||
return zerrors.ThrowInternal(err, "V2-WF23g2", "unable to update state")
|
||||
}
|
||||
if affected, err := res.RowsAffected(); affected == 0 {
|
||||
h.log().OnError(err).Error("unable to check if states are updated")
|
||||
|
Reference in New Issue
Block a user