mirror of
https://github.com/lnbits/lnbits.git
synced 2025-10-10 12:32:34 +02:00
fix old payments endpoint for lndhub (#1698)
* fix old payments endpoint for lndhub * fixup tests
This commit is contained in:
@@ -428,6 +428,8 @@ async def get_payments(
|
|||||||
|
|
||||||
if not filters:
|
if not filters:
|
||||||
filters = Filters()
|
filters = Filters()
|
||||||
|
filters.direction = "desc"
|
||||||
|
filters.sortby = "time"
|
||||||
|
|
||||||
if limit:
|
if limit:
|
||||||
filters.limit = limit
|
filters.limit = limit
|
||||||
|
Reference in New Issue
Block a user