diff --git a/lib/service/invoicesubscription.go b/lib/service/invoicesubscription.go index 4fc2081..9a2908c 100644 --- a/lib/service/invoicesubscription.go +++ b/lib/service/invoicesubscription.go @@ -21,7 +21,8 @@ func (svc *LndhubService) ProcessInvoiceUpdate(ctx context.Context, rawInvoice * // Search for an incoming invoice with the r_hash that is NOT settled in our DB err := svc.DB.NewSelect().Model(&invoice).Where("type = ? AND r_hash = ? AND state <> ? AND expires_at > NOW()", "incoming", rHashStr, "settled").Limit(1).Scan(ctx) if err != nil { - return err + svc.Logger.Infof("Invoice not found. Ignoring. r_hash:%s", rHashStr) + return nil } // Update the DB entry of the invoice