From 9f67d335996be995ae8a84a7a3724b32f3a83da8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Sun, 14 Apr 2024 20:11:32 +0200 Subject: [PATCH] rbdeal: look for sectors for all non-nil dealids --- rbdeal/deal_db.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rbdeal/deal_db.go b/rbdeal/deal_db.go index 264f0cc..cff2ce4 100644 --- a/rbdeal/deal_db.go +++ b/rbdeal/deal_db.go @@ -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) }