From a15ce36f35ae152503a9552f746e49f7be1f1cba Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Fri, 30 Sep 2022 11:53:11 +0100 Subject: [PATCH] Revert "Return from instead of to" This reverts commit 7a44076c6fabbb46fb2627c6bfd60abdb75a414d. --- 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 43b4f3735..aada70d5e 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.From + lastPos = r.To } return result, retired, lastPos, rows.Err() } diff --git a/syncapi/storage/sqlite3/invites_table.go b/syncapi/storage/sqlite3/invites_table.go index 7d91ecd7e..e2dbcd5c8 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.From + lastPos = r.To } return result, retired, lastPos, nil }