paymentsdb: fix formatting for sql QueryPayments
This commit is contained in:
1 file changed
+2
-6
@@ -530,9 +530,7 @@ func (s *SQLStore) QueryPayments(ctx context.Context, query Query) (Response,
|
|||||||
initialCursor int64
|
initialCursor int64
|
||||||
)
|
)
|
||||||
|
|
||||||
extractCursor := func(
|
extractCursor := func(row sqlc.FilterPaymentsRow) int64 {
|
||||||
row sqlc.FilterPaymentsRow) int64 {
|
|
||||||
|
|
||||||
return row.Payment.ID
|
return row.Payment.ID
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -549,9 +547,7 @@ func (s *SQLStore) QueryPayments(ctx context.Context, query Query) (Response,
|
|||||||
}
|
}
|
||||||
|
|
||||||
// collectFunc extracts the payment ID from each payment row.
|
// collectFunc extracts the payment ID from each payment row.
|
||||||
collectFunc := func(row sqlc.FilterPaymentsRow) (int64,
|
collectFunc := func(row sqlc.FilterPaymentsRow) (int64, error) {
|
||||||
error) {
|
|
||||||
|
|
||||||
return row.Payment.ID, nil
|
return row.Payment.ID, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user