From 8b1a6ef238e4af8bc40a33ff7ff7eb82b8c3c180 Mon Sep 17 00:00:00 2001 From: Joram Wilander Date: Tue, 31 May 2022 11:03:10 -0400 Subject: [PATCH] Remove NextSyncAt from GetRemoteStatus query (#20312) --- store/sqlstore/shared_channel_store.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/store/sqlstore/shared_channel_store.go b/store/sqlstore/shared_channel_store.go index 29aed5cdeb..379ff2f1f6 100644 --- a/store/sqlstore/shared_channel_store.go +++ b/store/sqlstore/shared_channel_store.go @@ -550,7 +550,7 @@ func (s SqlSharedChannelStore) GetRemotesStatus(channelId string) ([]*model.Shar status := []*model.SharedChannelRemoteStatus{} query := s.getQueryBuilder(). - Select("scr.ChannelId, rc.DisplayName, rc.SiteURL, rc.LastPingAt, scr.NextSyncAt, sc.ReadOnly, scr.IsInviteAccepted"). + Select("scr.ChannelId, rc.DisplayName, rc.SiteURL, rc.LastPingAt, sc.ReadOnly, scr.IsInviteAccepted"). From("SharedChannelRemotes scr, RemoteClusters rc, SharedChannels sc"). Where("scr.RemoteId = rc.RemoteId"). Where("scr.ChannelId = sc.ChannelId").