Return from instead of to

This commit is contained in:
Neil Alexander 2022-09-30 11:39:48 +01:00
parent d138dc48b0
commit 7a44076c6f
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.To
lastPos = r.From
}
return result, retired, lastPos, rows.Err()
}

View file

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