From 336bdeac143ec38f2a6008ca473877a175757d37 Mon Sep 17 00:00:00 2001 From: Jaz Volpert Date: Fri, 4 Oct 2024 16:52:38 +0000 Subject: [PATCH] List repos where we have no upstream status stores --- bgs/handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bgs/handlers.go b/bgs/handlers.go index d81ba7c4a..da87c9521 100644 --- a/bgs/handlers.go +++ b/bgs/handlers.go @@ -195,7 +195,7 @@ func (s *BGS) handleComAtprotoSyncNotifyOfUpdate(ctx context.Context, body *coma func (s *BGS) handleComAtprotoSyncListRepos(ctx context.Context, cursor int64, limit int) (*comatprototypes.SyncListRepos_Output, error) { // Filter out tombstoned, taken down, and deactivated accounts - q := fmt.Sprintf("id > ? AND NOT tombstoned AND NOT taken_down AND upstream_status != '%s' AND upstream_status != '%s' AND upstream_status != '%s'", + q := fmt.Sprintf("id > ? AND NOT tombstoned AND NOT taken_down AND (upstream_status is NULL OR (upstream_status != '%s' AND upstream_status != '%s' AND upstream_status != '%s'))", events.AccountStatusDeactivated, events.AccountStatusSuspended, events.AccountStatusTakendown) // Load the users