Skip to content

Commit

Permalink
List repos where we have no upstream status stored (#774)
Browse files Browse the repository at this point in the history
  • Loading branch information
ericvolp12 authored Oct 8, 2024
2 parents 160af4a + 336bdea commit 06bacb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bgs/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 06bacb4

Please sign in to comment.