From 7a44076c6fabbb46fb2627c6bfd60abdb75a414d Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Fri, 30 Sep 2022 11:39:48 +0100 Subject: [PATCH] Return from instead of to --- syncapi/storage/postgres/invites_table.go | 2 +- syncapi/storage/sqlite3/invites_table.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/syncapi/storage/postgres/invites_table.go b/syncapi/storage/postgres/invites_table.go index aada70d5e..43b4f3735 100644 --- a/syncapi/storage/postgres/invites_table.go +++ b/syncapi/storage/postgres/invites_table.go @@ -165,7 +165,7 @@ func (s *inviteEventsStatements) SelectInviteEventsInRange( } } if lastPos == 0 { - lastPos = r.To + lastPos = r.From } return result, retired, lastPos, rows.Err() } diff --git a/syncapi/storage/sqlite3/invites_table.go b/syncapi/storage/sqlite3/invites_table.go index e2dbcd5c8..7d91ecd7e 100644 --- a/syncapi/storage/sqlite3/invites_table.go +++ b/syncapi/storage/sqlite3/invites_table.go @@ -176,7 +176,7 @@ func (s *inviteEventsStatements) SelectInviteEventsInRange( } } if lastPos == 0 { - lastPos = r.To + lastPos = r.From } return result, retired, lastPos, nil }