invoices: add TODO to change the return type of the query

This commit is contained in:
ziggie committed 2026-03-04 13:04:26 +01:00
1 parent 0ca69e6f57
commit e2dfd8f034
3 files changed
+6

No files matched your search

+2
View File
@@ -65,6 +65,8 @@ FROM invoices i
WHERE i.payment_addr = $1;
-- name: GetInvoiceBySetID :many
-- TODO(ziggie): This query can only return one invoice if the set_id is
-- the primary key of amp_sub_invoices table.
SELECT i.*
FROM invoices i
INNER JOIN amp_sub_invoices a