lnd: call into the correct InvoiceStore from RPC calls

This commit is contained in:
Andras Banki-Horvath committed 2024-03-01 10:08:10 +01:00
1 parent 42508d44e5
commit 7a45bbbeab
2 files changed
+4 -1

No files matched your search

+1 -1
View File
@@ -5806,7 +5806,7 @@ func (r *rpcServer) ListInvoices(ctx context.Context,
CreationDateEnd: int64(req.CreationDateEnd),
}
invoiceSlice, err := r.server.miscDB.QueryInvoices(ctx, q)
invoiceSlice, err := r.server.invoicesDB.QueryInvoices(ctx, q)
if err != nil {
return nil, fmt.Errorf("unable to query invoices: %w", err)
}