Revert "Return from instead of to"

This reverts commit 7a44076c6f.
This commit is contained in:
Neil Alexander 2022-09-30 11:53:11 +01:00
parent 7a44076c6f
commit a15ce36f35
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944
2 changed files with 2 additions and 2 deletions

View file

@ -165,7 +165,7 @@ func (s *inviteEventsStatements) SelectInviteEventsInRange(
}
}
if lastPos == 0 {
lastPos = r.From
lastPos = r.To
}
return result, retired, lastPos, rows.Err()
}

View file

@ -176,7 +176,7 @@ func (s *inviteEventsStatements) SelectInviteEventsInRange(
}
}
if lastPos == 0 {
lastPos = r.From
lastPos = r.To
}
return result, retired, lastPos, nil
}