Skip to content

Commit

Permalink
rbdeal: look for sectors for all non-nil dealids
Browse files Browse the repository at this point in the history
  • Loading branch information
magik6k committed Apr 14, 2024
1 parent 83118e0 commit 9f67d33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rbdeal/deal_db.go
Original file line number Diff line number Diff line change
Expand Up @@ -1365,7 +1365,7 @@ type noSectorDealInfo struct {
}

func (r *ribsDB) GetSealedDealsWithNoSectorNums() ([]noSectorDealInfo, error) {
res, err := r.db.Query(`select uuid, provider_addr, deal_id from deals where sealed = 1 and sector_number is null order by provider_addr limit 1000`)
res, err := r.db.Query(`select uuid, provider_addr, deal_id from deals where deal_id is not null and sector_number is null order by provider_addr limit 1000`)
if err != nil {
return nil, xerrors.Errorf("getting deals: %w", err)
}
Expand Down

0 comments on commit 9f67d33

Please sign in to comment.